.maingrid{
    width: 60%;
    justify-self: center;
    margin-top: 10vh;
    flex-direction: column;

}
.maintitle{
    font-size: 1.6rem;
    padding: 2vh;
    font-weight: 740;
    color: #FF9553;
}

.infocont{
    justify-content: center;
    flex-direction: column;
}

.mattcontser{
    flex-direction: column;
    width: 70vh;
   
}

.imgcontser{
    width: 60vh;
    height: 60vh;
}

.instimg{
    position: relative;
    width: 100%;    
    margin-top: 15vh;

}


.instimg2{
    position: relative;
    width: 100%;    
    margin-top: 7vh;

}

.matterser2{
    position: relative;
    width: 90%;
    padding: 2rem;
}

.topline{
    padding:   1rem;
}

.form{
    width: 80%;
}

.formcont{
    margin: 5vh;
}

.grid-cont{
    width: 100%;
    justify-content: center;
    margin-top: 10vh;
}



.grid-container {
    
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    grid-template-rows: repeat(2, 1fr); /* 2 rows */
    width: 100%;
    max-width: 950px;
    height: auto !important; /* Full height of the viewport */

}

.grid-item {
    
    background-color: #000; /* Background color for visibility */
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20vh !important;
    max-width: 950px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative; /* Position relative for the overlay */
    color: #fff;
        font-weight: 700;
        font-size: 1.8rem;
}

.darkoverlay{
    position: absolute;
    height: 20vh !important;
    max-width: 950px;
    width: 100%;
    background-color: #000;
    opacity: 0.5;

}

.textonimg{
    color: #fff;
    z-index: 3;
}


.ele1{
   
    background-image: url(/src/hvacvali3.png);
}


.ele2{
    background-image: url(/src/thermalvali3.jpg);
    border-right: none;
}

.ele3{
    background-image: url(/src/plc-validation2.jpg);
    border-bottom: none;
}


.ele4{
    background-image: url(/src/therml.jpg);
    border-bottom: none;
    border-right: none;
}

.abtcont{
    margin-top: 13vh;
    width: 100%;
    align-items: center;
    justify-content:center ;
    
}
.serhead{
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2vh;
}


@media screen and (max-width: 768px) {

    
   
    .sergrid{
        display: grid;
    grid-template-columns: repeat(1, 1fr)  !important; /* 2 columns */
    grid-template-rows: repeat(4, 1fr) !important; /* 2 rows */
    margin-bottom: 0vh;
    
    }
    .mattcont{
        flex-direction: column;
        width: 100%;
    }
    .infocont{
        width: 100%; 
    }
    .imgcontser{
        width: 20vh;
        height: auto;
    }
    .mattcontser{
        width: 100%;
    }
    #leftform{
        display: none;
    }
    .form-wrapper{
        width: 100% !important;
        justify-content: center; 
    }
    .right{
        width: 100% !important;
    }
    .grid-item{
        margin-bottom: 2vh;
    }
    .headline{
        font-size: 1.4rem !important;
    }
    .header{
        height: 25vh !important;
    }
    .maintitle{
        font-size: 1.3rem;
    }
    .textonimg{
        font-size: 1.1rem;
    }
    .picser{
    display: none; 
    }
    .maingrid{
        margin-top: 5vh;
    }
    .abtcont{
        margin-top: 7vh !important;
        width: 95% !important;
        margin-left: 5% !important;
    }
    .maincont{
        height: auto !important;
        padding-bottom: 10vh !important;
        margin-top: 10vh;
    
    }
    .serviceli{
        font-size: .8rem;
        font-weight: 550;
    }
}
