@media only screen and (min-width: 360px) and (max-width: 501px) {

  .logo img{display: none;}
  .main-nav{display: none;}
  .res-nav{display: block;}
  .res-nav .res-navbar {
      height: 100%;
      width: 95%;
      margin-right: 2.5%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 0px;
    }
    .res-links{
      display: flex;
      flex-direction: column;
      height: 100vh; /* Full viewport height */
      justify-content: space-between; /* Push login to bottom */
      flex: 1;
    }
    .res-links li {
      margin-bottom: 10px; /* Add spacing between items */
      height: auto;
  }
  
    .res-links li a{
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 10px;
      color: black;
    }
    .res-links li a .fa-solid{
      font-size: 20px;
    }

    .res-line{
      width: 100%;
      height: 1px;
      background-color: black;
      opacity: 0.1;
      margin-top: -4%;
    }
    .nav-end-blank{
      height: 32px;
    }
    .pre-section1{
      display: none;
    }
    .main {
      width: 95%; /* Increase width percentage for smaller screens */
      margin: 20px auto 0; /* Keep auto for horizontal centering */
      padding: 0 5px; /* Reduce padding to prevent overflow */
  }
    .company-logo {
    width: 180px;
    height: 180px;
    border-radius: 5px;
    border: 1px solid #ebebeb;
}
  #company-name {
    margin-top: 3%;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: right;
}
#address {
  margin-right: 0.5%;
  font-size: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
  min-width: 0;
}

    }
    
    