/* --- Universal box-sizing --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Logo Image Style --- */
.img-sty {
  width: clamp(8rem, 25vw, 12.5rem);
  margin-block: clamp(0.4rem, 2vh, 0.625rem);
}

/* --- Submenu Logo Style --- */
.img-sty-1 {
  width: clamp(3rem, 12vw, 5rem);
  filter: brightness(0) saturate(100%) invert(49%) sepia(81%) saturate(382%) hue-rotate(53deg);
}

.img-sty-1:hover {
  filter: none;
}

/* --- Navigation Container --- */
nav {
  background-color: #fff;
  padding: 0.625rem;
}

.nav-m-con {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 5vw, 1.25rem);
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1rem);
  align-items: center;
  margin-left: auto;
}
.menu li {
  position: relative;
}

.menu a {
  font-weight: 600;
  color: #1e1e1e;
  text-decoration: none;
  padding: clamp(0.5rem, 2vh, 0.625rem) clamp(0.625rem, 2vw, 0.9375rem);
  display: block;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: #f0f0f0;
}

/* --- Submenu Styles --- */
.submenu {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  list-style: none;
  min-width: clamp(10rem, 30vw, 12.5rem);
  border-radius: 0.3125rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  border-bottom: 0.625rem solid #59b400;
  z-index: 100;
  padding-block: 0.625rem;
  top: 100%;
  left: 0;
}

.submenu.active-submenu {
  display: block;
}

/* --- Submenu Heading & Link Hover --- */
#h-sty {
  border-bottom: 0.0625rem solid lightgray;
  font-weight: 600;
  color: #59b400;
  padding: 0.625rem;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
}

#c-c-tx:hover {
  color: #59b400;
  border-bottom: 0.125rem solid #59b400;
}

/* --- Mobile Menu Toggle Button --- */
.submenu-toggle {
  display: inline-block;
  font-weight: 600;
  color: #1e1e1e;
  cursor: pointer;
  padding: 0.625rem 0.9375rem;
}
.submenu-toggle::after {
  content: " ▼";
  font-size: 0.75rem;
  margin-left: 0.25rem;
  color: #59b400;
}

/* --- Container Adjustments --- */
.con-top-adjust {
  text-align: right;
  padding-inline: clamp(1.5rem, 6vw, 2.6875rem);
}

.display-adjust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.menu-toggle {
  display: none;
  font-size: 1.3rem;
    background-color: #f0f0f0;
    padding: .5rem;
    border-radius: .2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);/* hide by default */
}

/* --- Responsive Breakpoint (max-width: 600px) --- */
@media (max-width: 600px) {
  .nav-m-con {
    display: flex;
  }

.menu {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.menu.show {
  max-height: 100vh; /* or specific height */
  visibility: visible;
  opacity: 1;
}


  .menu-toggle {
    display: block;
    position: relative;
    z-index: 999;
    pointer-events: auto;

  }

  .menu a {
    width: 100%;
    padding-block: 0.75rem;
  }

  .menu li > a::after {
    content: " ▼";
    font-size: 0.75rem;
    color: #59b400;
    visibility: hidden;
  }

  .submenu {
    transition: max-height 0.3s ease;
    overflow: hidden;
  }

  nav {
    position: absolute;
    left: 0;
    top: 82px;
    z-index: 999;
  }

  .submenu.active-submenu {
    display: block;
    position: relative;
    width: 410px;
    border-bottom: none;
    box-shadow: none;
  }
}