#main1{
    background-image: url("https://cdn.wallpapersafari.com/19/4/Rc495E.jpg");
    height: 500px;
    /* width: 98%; */
}

#ham{
    height: 40px;
    width: 40px;
    color:aliceblue
}

#navbar{
    width: 90%;
    margin: auto;
    display: flex;
    /* border: 1px solid red; */
    justify-content: space-between;

}
#navbar h2{
    color: white;
}

#main2{
    /* border: 1px solid white; */
    width: 50%;
    /* margin: auto; */
    margin-top: 70px;
    margin-left: 360px;
    justify-content: center;
    color: white;
    text-align: center;

}
#main3{
    display: flex;
    gap: 1rem;
    justify-content:space-evenly;
}
#main3 button{
    border-radius: 1rem;
    border: 0.3px solid pink;
}

#work_section{
    height: 500px;


}
#work_section h4{
    color: pink;
    text-align: center;

}
#work_section h2{
    color: red;
    text-align: center;
}



#main4{
    /* border: 1px solid red; */
    height: 400px;
    width: 30%;
    margin: auto;
    margin-top: 40px;
    

}
#main5{
    display: flex;
    gap: 1rem;
    width: 350px;
    height: 240px;
}

#img1{
    width: 350px;
    height: 220px;
}
#img2{
    width: 170px;
    height: 170px;
}
#img3{
    width: 170px;
    height: 170px;
}
#box1{
    display: flex;
}


#p1{
    display: flex;
    gap: 1rem;

}
#p1 p{
    color: grey;
}
#smallimg{
    height: 30px;
    width: 30px;
    margin-top: 18px;
}

#popular{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    /* border: 1px solid green; */
    width: 480px;
    margin: auto;
    height: 240px;
}

#post{
    display: flex;
    /* border: 1px solid purple; */
    /* margin-left: -200px; */
    width: 80%;
    margin: auto;
    gap: 1rem;
}
#blog{
    width: 300px;
    text-align:start;
    /* border: 1px solid red; */
    padding: 10px;
}
#blog h4{
    color: grey;

}

#tag{
    /* border: 1px solid green; */
    width: 40%;
    margin: auto;
}
#tag h3{
    text-align: center;
}
#box2{
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 1rem;
}

#work-section-title{
    background-color: #F3F4F7;
    text-align: center;
    padding: 10px;
    margin-bottom:0px;
}
img{
    width:100%;
    height: 100%;
}
#work-section{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    column-gap: 10px;
}

#ff{
    display: grid;
    row-gap: 5px;
}

#child1{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    column-gap: 5px;
}



#apartment-title{
    background-color: #F3F4F7;
    text-align: center;
    padding: 10px;
    margin-bottom:0px;
}
#apartment{
    display: grid;
    grid-template-columns: repeat(4,1fr);

}
#apartment > div> img{
    width: 100%;
    height: 100%;
}
#apartment > div{
    text-align: center;
    font-weight: 700;
    align-items: center;
    
}
span{
    color:#afafb0;
}
#apartment>div> button{
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #afafb0;
    
}






@media only screen and (min-width:575px) and (max-width:991px){

    #navbar{
        width: 700px;
    }
  #main2{
    width: 330px;
    margin-left: 260px;
    font-style: italic;
    text-justify: center;

  }

#post {
    width: 600px;
}
#popular{
    width: 420px;
}

#blog{
    width: 350px;
}
#box2{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
    justify-content: center;
}

#apartment{
    display: grid;
    grid-template-columns: repeat(2,1fr);

}
#work-section{
    display: grid;
    grid-template-columns: repeat(1,1fr);
    column-gap: 10px;
}
}






@media only screen and (min-width:293px) and (max-width:575px){

    #navbar{
        width: 400px;
    }
    #main2{
        width: 230px;
        margin-left: 120px;
        font-style: italic;
        text-justify: center;
    
      }



    #popular{
        width: 333px;
    }
    #post h2{
        text-align: center;
    }
    
    #post {
        flex-direction: column;
    }
    #blog{
        margin: auto;
        text-align:center
    }
    #box2{
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 1rem;
    }
    #apartment{
        display: grid;
        grid-template-columns: repeat(1,1fr);
    
    }
    #work-section{
        display: grid;
        grid-template-columns: repeat(1,1fr);
        column-gap: 10px;
    }
    #child1{
        display: grid;
        grid-template-columns: repeat(1,1fr);
        column-gap: 5px;
    }

   



}

