
html,
body {
    background-color: #FAF9FE !important;
     width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Main website sections */
section,
main,
footer,
.wrapper,
.container {
    background-color: #FAF9FE;
}

/* Common page backgrounds */
.nec-export-page,
.nec-machine-section,
.nec-content-section,
.nec-products-section,
.nec-faq-section {
    background-color: #FAF9FE !important;
}

.industries-hero,
.industries-hero * {
    box-sizing: border-box;
}


/* MAIN HERO CONTAINER */

.industries-hero {

    position: relative;

    width: calc(100% - 30px);

    height: 600px;

    min-height: 530px;

    margin: 15px auto 0;

    overflow: hidden;

    border-radius: 20px;

    background: #e9f2ff;

}


/* ==========================================
   BACKGROUND BANNER IMAGE
========================================== */

.industries-hero-image {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center center;

    z-index: 1;

}


/* ==========================================
   EXISTING WEBSITE HEADER
========================================== */

.industries-hero #site-header {

    position: relative;

    width: 100%;

    z-index: 10;

}


/* ==========================================
   LARGE LAPTOP
========================================== */

@media (max-width: 1400px) {

    .industries-hero {

        height: 520px;

    }

}


/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 1000px) {

    .industries-hero {

        width: calc(100% - 24px);

        height: 450px;

        min-height: 400px;

        border-radius: 20px;

    }

}


/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 650px) {

    .industries-hero {

        width: calc(100% - 20px);

        height: 380px;

        min-height: 350px;

        margin-top: 10px;

        border-radius: 16px;

    }

    .industries-hero-image {

        object-position: center center;

    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .industries-hero {

        height: 330px;

        min-height: 330px;

    }

}

/* ==========================================
   INDUSTRIES CATEGORY SECTION
   NARESH ENGINEERING CORPORATION
========================================== */

.nec-industries-section,
.nec-industries-section * {
    box-sizing: border-box;
}


/* MAIN SECTION */

.nec-industries-section {

    width: 100%;

    padding: 70px 80px;

    margin: 0;

    background: #f9fafc;

    font-family: "Poppins", sans-serif;

}


/* MAIN CONTAINER */

.nec-industries-container {

    width: calc(100% - 10px);

    max-width: 1400px;

    margin: 0 auto;

}


/* CATEGORY GRID */

.nec-industries-grid {

    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    column-gap: 18px;

    row-gap: 50px;

    width: 100%;

}


/* INDIVIDUAL CARD */

.nec-industry-card {

    width: 100%;

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

}


/* CIRCULAR IMAGE */

.nec-industry-icon {

    width: 200px;

    height: 200px;

    max-width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


/* IMAGE */

.nec-industry-icon img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    object-position: center;

    transition: transform 0.35s ease;

}


/* HOVER EFFECT */

.nec-industry-card:hover .nec-industry-icon img {

    transform: scale(1.05);

}


/* CATEGORY NAME */

.nec-industry-card h3 {

    width: 100%;

    margin: 20px 0 0;

    padding: 0 5px;

    color: #242424;

    font-family: "Poppins", sans-serif;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.4;

    text-align: center;

}


/* ==========================================
   LAPTOP RESPONSIVE
========================================== */

@media (max-width: 1500px) {

    .nec-industries-container {

        width: calc(100% - 60px);

    }

    .nec-industries-grid {

        column-gap: 12px;

        row-gap: 38px;

    }

    .nec-industry-icon {

        width: 185px;

        height: 185px;

    }

    .nec-industry-card h3 {

        font-size: 14px;

    }

}


/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 1100px) {

    .nec-industries-container {

        width: calc(100% - 40px);

    }

    .nec-industries-grid {

        grid-template-columns: repeat(4, minmax(0, 1fr));

        column-gap: 15px;

        row-gap: 35px;

    }

    .nec-industry-icon {

        width: 180px;

        height: 180px;

    }

}


/* ==========================================
   SMALL TABLET
========================================== */

@media (max-width: 768px) {

    .nec-industries-section {

        padding: 30px 0 45px;

    }

    .nec-industries-grid {

        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 30px 12px;

    }

    .nec-industry-icon {

        width: 155px;

        height: 155px;

    }

    .nec-industry-card h3 {

        font-size: 13px;

    }

}


/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 550px) {

    .nec-industries-container {

        width: calc(100% - 25px);

    }

    .nec-industries-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 27px 12px;

    }

    .nec-industry-icon {

        width: 145px;

        height: 145px;

    }

    .nec-industry-card h3 {

        font-size: 13px;

        line-height: 1.5;

        margin-top: 9px;

    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .nec-industries-container {

        width: calc(100% - 20px);

    }

    .nec-industries-grid {

        gap: 23px 8px;

    }

    .nec-industry-icon {

        width: 125px;

        height: 125px;

    }

    .nec-industry-card h3 {

        font-size: 12px;

    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .nec-industry-icon img {

        transition: none;

    }

}

/* BLUE CIRCULAR BORDER */

.nec-industry-icon {

    width: 200px;

    height: 200px;

    max-width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border: 7px solid #b5eaff;

    border-radius: 50%;

    background: #ffffff;

    padding: 10px;

}


/* IMAGE */

.nec-industry-icon img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    object-position: center;

}


/* LAPTOP */

@media (max-width: 1500px) {

    .nec-industry-icon {
        width: 185px;
        height: 185px;
        border-width: 6px;
        padding: 10px;
    }

}


/* TABLET */

@media (max-width: 768px) {

    .nec-industry-icon {
        width: 155px;
        height: 155px;
        border-width: 5px;
        padding: 8px;
    }

}


/* MOBILE */

@media (max-width: 550px) {

    .nec-industry-icon {
        width: 145px;
        height: 145px;
        border-width: 5px;
        padding: 8px;
    }

}
