body{
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100vw;
}
*{
    margin: 0px;
    padding: 0px;
    max-width: 100vw;

}
/*styling the nav bar*/
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: brown;
    height: 58px;
    width: 100%;
    margin-left: 0px;
    position: relative;
    padding-left: 50px;
    background-color:#4D413A;
}
/*styling the logo in navbar*/
nav .logo img{      /*logo icon*/
    width: 105px;
    height: 26px;
    cursor: pointer;
}
nav ul{
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

nav ul li{
list-style: none;
display: flex;
align-items: center;    /*vertical alighnment*/
}

nav ul li a{
padding-top: 18px;
text-decoration: none;
color: grey;
text-align: center;
font-size: small;
}

nav ul li a:hover{      /*hover effect in navbar*/
    color: #F26522;
}

.menuicon{  /*styling the resonsive bar icon in nav bar*/
font-size: 2rem;
color: white;
display: none;
}
.navbtn{        /*contact us btn in nav bar*/
    background:#F26522;
    border-radius: 10px;
    display: inline-flex;
    padding: 5px 10px;
}

/*styling the abt us section*/
.abtus{
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: 10px;
}

/*adding the line in abt us */
.abtushead h3::after{
    content: "";
    display: inline-block;
    width: 250px; /* Custom underline length */
    height: 3px; /* Thickness */
    background-color: #F26522;; /* Color */
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
}

img{
    width: auto; /* Maintain width */
    height: 270px; /* Set desired height */
    object-fit: cover; /* Ensures the image fills the space while keeping aspect ratio */
}

.p-distance{    /*spacing the paragraph*/
    height: 270px;
    margin-top: 20px;
}

/*adding the line in our history */
.missionhead h3::after{
    content: "";
    display: inline-block;
    width: 250px; /* Custom underline length */
    height: 3px; /* Thickness */
    background-color: #F26522;; /* Color */
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
}

.missionhead h3::before{
    content: "";
    display: inline-block;
    width: 250px; /* Custom underline length */
    height: 3px; /* Thickness */
    background-color: #F26522;; /* Color */
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
}

.missionhead p::before{
    content: "";
    display: block;
    width: 130px; /* Custom underline length */
    height: 2px; /* Thickness */
    background-color: #898787;; /* Color */
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
    margin-left: 590px;
}


/*styling footer*/
.footerhd{
    display: flex;
    justify-content: center;
    color: #4A4A4C;
}
.mfooter ul,li{
        list-style: none; 
        padding: 0;
        margin: 0;
      
}
/*styling links in footer*/
.mfooter ul li a {    
    text-decoration: none;
    color: #4A4A4C;
    gap: 0;
}
/*adding hover effect in footer*/
.mfooter ul li a:hover{     
    color: #F26522;
    text-decoration: underline;
}

/*styling the icons container in the footer*/

.logofooter{
    margin-left: 150px;
    margin-bottom: 10px;
}
/*styling the icons in the footer*/
.logofooter i{
    padding: 10px;
}

/*styling the undeline in the gheading of the footer*/

.lfooter h3::after{
        content: "";
        display: block;
        width: 70px; /* Custom underline length */
        height: 3px; /* Thickness */
        background-color: #F26522;; /* Color */    
}
.mfooter h3::after{
    content: "";
    display: block;
    width: 70px; /* Custom underline length */ 
    height: 3px; /* Thickness */
    background-color: #F26522;; /* Color */
  
}
.rfooter h3::after{
    content: "";
    display: block;
    width: 70px; /* Custom underline length */
    height: 3px; /* Thickness */
    background-color: #F26522;; /* Color */
}

/*styling the line above copyright in the footer*/

.copyfoot p::before{
    content: "";
    display: block;
    width: 950px; /* Custom underline length */
    height: 1px; /* Thickness */
    background-color: #4A4A4C;; /* Color */
    margin-left: 170px;
    margin-bottom: 20px;
}


/*creating the responsiveness of the page*/

/*tablets screens*/
@media only screen and (min-width: 601px) and (max-width: 1000px){

    html,body{
        overflow-x: hidden;
        overflow-y: auto;
    }

    .abtus{
        display: flex;
        flex-direction: column; /*alighning items vertically*/
        gap: 5px;
        margin-top: 0px;

    }

    .abtushead h3{
        text-align: center; /*centering the h3 headings*/
    }

    /*adding the line in abt us */
    .abtushead h3::after{
        display: block;
        width: 70px; /* Custom underline length */
        height: 2px; /* Thickness */
        position: relative;
        left: 45%;          /*positioning the line*/
        background-color: #F26522;; /* Color */
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
    }

    .hide{    /*hiding image*/
        display: none;
    }

    .withbg{        /*keeping background*/
        max-width: 100%;
        background-color: #4D413A;
        color: white;
       margin-right: 5px;

    }

    .p-distance{
        margin-top: 0px;
        padding-top: 0px;
        transform: translateY(-30px);   /*controlling the paragraph postion*/
    }

    /*adding the line in our mission */
    .missionhead h3::after{
        content: "";
        display: inline-block;
        width: 90px; /* Custom underline length */
        height: 3px; /* Thickness */
        background-color: #F26522;; /* Color */
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
    }

    .missionhead h3::before{
    content: "";
    display: inline-block;
    width: 90px; /* Custom underline length */
    height: 3px; /* Thickness */
    background-color: #F26522;; /* Color */
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
    }

    .missionhead p::before{
    content: "";
    display: block;
    width: 90px; /* Custom underline length */
    height: 2px; /* Thickness */
    background-color: #898787;; /* Color */
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
    margin-left: 335px;
    }

    /*styling the footer*/

    .copyfoot p::before{
        content: "";
        display: block;
        width: 90%; /* Custom underline length */
        height: 1px; /* Thickness */
        background-color: #4A4A4C;; /* Color */
        margin-left: 10px;
        margin-bottom: 20px;
    }

}

/*for phones screen */

@media (max-width: 600px) {

    body{
        overflow-x: hidden;
        overflow-y: auto;
        max-width: 100vw;
    }

     /*styling the nav bar*/

    nav {
        flex-direction: column; /* Stack items vertically */
        align-items: center;   
        z-index: 1000;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    nav .logo img{      /*logo icon*/
        width: 100px;
        cursor: pointer;
        position: absolute;
        top: 25%;
        left: 2%;
    }

    nav ul{
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #453a34;
        display: none;
    }
    nav ul li{
        padding: 10px;
        margin-left: 150px;
    }

    nav .menuicon{   /*menu icon in nav bar*/
        display: block;   
    } 
    nav .grpbtn{
        position: absolute;
        right: 6%;
        top: 10%;
        display: flex;
        margin-right: 10px;
    }

    .abtushead h3{
        text-align: center; /*centering the h3 headings*/
    }

    /*adding the line in abt us */
    .abtushead h3::after{
        position: relative;
        display: block;
        width: 70px; /* Custom underline length */
        height: 2px; /* Thickness */
        left: 40%;
        background-color: #F26522;; /* Color */
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
    }

    .abtus{
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 50px;
    }

    .rabtus img{    /*styling image*/
        max-width: 90%;
        height: auto;
        margin-left: 3%;
      	margin-bottom: 2%
    }

    .withbg{
        width: 100vw;
        background-color: #4D413A;
        color: white;
       margin-right: 5px;

    }

    .p-distance{
        margin-top: 0px;
        padding-top: 0px;
        transform: translateY(-80px);
    }

    /*adding the line in our history */
    .missionhead h3::after{
        content: "";
        display: inline-block;
        width: 50px; /* Custom underline length */
        height: 3px; /* Thickness */
        background-color: #F26522;; /* Color */
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
    }

    .missionhead h3::before{
    content: "";
    display: inline-block;
    width: 50px; /* Custom underline length */
    height: 3px; /* Thickness */
    background-color: #F26522;; /* Color */
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
    }
    
   .missionhead p::before{
    content: "";
    display: block;
    width: 110px; /* Custom underline length */
    height: 2px; /* Thickness */
    background-color: #898787;; /* Color */
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.6);
    margin-left: 34%;
} 

    /*styling footer*/

    .mfooter{           /*useful link column*/
        margin-top: 20px;
    }

    .mfooter ul li a:hover{
        color: #F26522;
        text-decoration: underline;
    }

    .rfooter{
        margin-top: 20px;
    }

    /*styling the icons container in the footer*/
    .logofooter{
        margin-left: 0px;
    }

    /*styling the icons in the footer*/
        .logofooter i{
            padding: 10px;
            padding-left: 0px;
        }

    /*styling the line above copyright in the footer*/

    .copyfoot p::before{
        content: "";
        display: block;
        width: 300px; /* Custom underline length */
        height: 1px; /* Thickness */
        background-color: #4A4A4C;; /* Color */
        margin-left: 10px;
        margin-bottom: 20px;
    }

}