/* header section starts here */
.headrflex{

    margin-top:30px;
    height:55px;
    border-width: 1px;
    border-style: solid;
    border-color:transparent;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.header_image{
    margin-left: 23px;
    width: 136px;
    height: 55px;

}

.menu{
    line-height: 5px;
    position: relative;
}

.menu-close{
    display: none;
    position: fixed;
    top: 74px;
    right: 16px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 32px;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    padding: 4px;
}

body.menu-open{
    overflow: hidden;
}

/* Ensure CSS controls visibility of the hamburger and close button based on the menu state.
   Avoid inline-style overrides by using !important where necessary. */
body.menu-open .hamburger{
    display: none !important;
}
body.menu-open .menu-close{
    display: block !important;
}

.menu ul{
    display: flex;
    list-style-type: none;
    margin-right: 50px;
}

.menu ul li{
    display: inline;
    padding: 1%;
    font-weight: lighter;
    color: white;
    text-decoration: none;
}

.hamburger{
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.menu.menu-open ul{
    display: flex;
}

.navlinks{
    font-size: 26px;
    color: white;
    text-decoration: none;
}

.navlinks:hover{
     color: black;
    
}
/*hrader section ends here*/
@media (min-width: 769px) and (max-width: 1366px){
    .headrflex{
        margin-top: 20px;
        padding: 0 24px;
    }

    .header_image{
        margin-left: 0;
        width: 130px;
        height: auto;
    }

    .menu ul{
        margin-right: 0;
        gap: 8px;
    }

    .navlinks{
        font-size: 22px;
    }
}

@media (max-width: 768px){

   .headrflex{
    margin-right: 0;
    margin-top: 10px;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    padding: 0 16px;
}
.header_image{
    margin-left: 0;
    width: 120px;
    height: auto;
}
.hamburger{
    display: block;
}
.menu-close{
    display: block;
}
.menu ul{
    margin: 0;
    padding: 8px;
    justify-content: center;
    display: none;
    flex-direction: column;
    gap: 4px;
    width: calc(100vw - 12px);
    max-width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    background: rgba(245, 245, 245, 0.99);
    position: fixed;
    top: 66px;
    left: 6px;
    right: 6px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.14);
    z-index: 999;
    box-sizing: border-box;
}
.menu.menu-open ul{
    display: flex;
}
.menu ul li{
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.menu ul li a{
    font-size: 18px;
    padding: 10px 0;
    display: block;
    color: #333;
}
.navlinks{
    font-size: 20px;
}

}

@media (max-width: 500px){

   .headrflex{
    margin-right: 0;
    margin-top: 10px;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    position: relative;
}
.header_image{
    margin-left: 0;
    width: 120px;
    height: 48px;
}
.hamburger{
    display: block;
}
.menu ul{
    display: none;
}

.navlinks{
    font-size: 20px;
    color: white;
    text-decoration: none;
}

}

@media (max-width: 480px){

   .headrflex{
    margin-right: 0;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.menu ul{
    display: none;
}
.header_image{
    width: 110px;
    height: 44px;
}
.navlinks{
    font-size: 18px;
}

}

@media (max-width: 390px){

   .headrflex{
    margin-right: 0;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.menu ul{
    display: none;
}
.header_image{
    width: 100px;
    height: 40px;
}
.navlinks{
    font-size: 17px;
}

}

@media (max-width: 320px){

   .headrflex{
    margin-right: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.menu ul{
    display: none;
}
.header_image{
    width: 90px;
    height: 36px;
}
.navlinks{
    font-size: 16px;
}

}