body{
    margin: 0;
    padding:0;
    box-sizing: border-box;
    background-color: white
}


                                                                                                    /* For nav bar  */
.flexing{
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-evenly;
    align-content: space-between;
    background-color: #4e99c5
}
.navbar{
    width: 100%;
    height:50px;
    background-color: #4e99c5;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.logo{
    background-color: #4e99c5;
}
.menu{
    background-color: #4e99c5;
}
.searchbar{
    background-color: #4e99c5;
    margin-top: -5px;
    margin-right: -20px;
}

#logo_image{
    height:50px;
    width:50px;
    margin-top:5px;
    margin-left:-100px;
    border-radius: 2px;
}

#names{
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-content:center;
    list-style: none;
    margin-top: 15px;
    background-color:  #4e99c5;
    gap: 50px;
}

.search-input {
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    width: 300px;
}

.search-button {
    padding: 10px 15px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-button:hover {
    background-color: #004494;
}

.search-form{
    margin-top: 15px;
    background-color:  #4e99c5;
    display: flex;

}

#names a {
    text-decoration: none; 
    color: black; 
    background-color: #4e99c5; 
    font-size: x-large; 
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; 
    font-weight: 200;
    padding: 10px; 
    transition: background-color 0.3s, color 0.3s; 
}

#names a:hover {
    background-color: #3a7a95;
    color: white; 
    border-radius: 5px;
}


                                                                                        /* For middle part */
/* MAIN CONTAINER */
.contact-section {
  width: 100%;
}

/* ================= IMAGE SECTION ================= */
.image-txt {
  position: relative;
  width: 100%;
}

.contact-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Overlay text centered */
.overlay {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.overlay h1 {
  font-size: 80px;
}

.overlay p {
  margin-top: -30px;
  font-size: 40px;
  font-weight:bold;
}

/* ================= FORM ================= */
.form-wrapper {
  display: flex;
  justify-content: center;
  /* margin-top: -80px; overlap effect */
}

#contactForm {
  min-width: 80%;
  background: #4e99c5;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

#contactForm input,
#contactForm textarea {
 align-content: center;
  width: 97%;
  padding: 15px;
  margin: 10px 0px;
  border-radius: 5px;
  border: none;
}

#contactForm button {
  display: block;
  margin: 20px auto;
  width: 20%;
  padding: 15px;
  background: #28a745;
  color: white;
  font-size: 18px;
  border: none;
  cursor: pointer;
}

#sub:hover {
    background-color: #2bf456;
    border:1px solid black;
    color: black;
}


/* ================= BOXES ================= */
.boxes {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.box {
  width: 280px;
  padding: 20px;
  border: 5px solid #4e99c5;
  border-radius: 20px;
  text-align: center;
  background: white;
}

.box img {
  width: 120px;
  margin-bottom: 10px;
}

.box p {
  font-weight: bold;
}


                                                                                                        /* For footer  */

.foot{
    z-index: 20;
    margin-top: 50px;
    background-color: rgb(27, 28, 30);
    height: 250px;
    width: 100%;
    position: relative;
}

.footerr{
    display: flex;
    flex-direction: row;
    gap: 100px;
    justify-content: space-evenly;
}

#divi{
    width:1px;
    height:70%;
    background-color:rgba(245, 245, 245, 0.692);
    position: absolute;
    margin-top: 30px;
}

#address{
    color:rgba(245, 245, 245, 0.692);
    margin-top: 30px;
    font-size: 17px;
    line-height: 7px;
    font-style: normal;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
#copywrite{
    color:rgba(245, 245, 245, 0.692);
    text-align: center;
    margin: 40px;
}








.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;

}




/* ========================= */
/*  Mobile (max-width: 768px) */
/* ========================= */

/* for navbar */
@media screen and (max-width: 768px) {
  .flexing{
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content:space-evenly;
    align-content:center;
    background-color:#4e99c5;
}

   .hamburger {
    display: block;
    width:50%;
  }

  .menu {
    display: none;
    width: 100%;
  }

  .menu.active {
    display: block;
    position: absolute;
    z-index: 10;
  }

  #names {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
  }

  #names li {
    width: 100%;
    text-align: center;
  }

  #names a {
    display: block;
    width: 100%;
  }

  .searchbar{
     display: none;
  }
  .logo{
      background-color: #4e99c5;
      width: 50%
  }

#logo_image{
    width:25%;
     margin-left:10%;
     margin-top: 12px;
     height: 37.6px;
    border-radius: 2px;
}

  #hamb{
     width:25%;
    border-radius: 2px;
    margin-left:85%;

  }

}




/* For all  middle part  */

@media (max-width: 768px) {

  .contact-img {
    height: 300px;
  }

  .overlay h1 {
    font-size: 28px;
  }

  .overlay p {
    margin-top: 0px;
    font-size: 16px;
  }

  .form-wrapper {
    margin-top: 20px; /* remove overlap */
  }

}



/* for footer*/

@media screen and (max-width: 768px) {

  .foot{
    height: auto;
    width: auto;
  }
  .footerr{
    flex-direction: column;   /* stack */
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  #divi {
    display: none;
  }

  .address {
    width: 90%;
  }

  #copywrite {
    margin: 20px;
    font-size: 14px;
  }
}