/* ------------------------------
   Reset & Base Styles
------------------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  user-select: none;
}


.below-nav {
  background: linear-gradient(
    to bottom,
    white 0px,
    white 160px,
    #9cfff0 100%
  );
  background-attachment: fixed;
}

.below-nav-home-page {
  background: linear-gradient(
    to bottom,
    white 0px,

    #9cfff0 100%
  );
  background-attachment: scroll;
}


main {
  padding: 2rem;
  max-width: 1240px;
  margin: 0 auto;
}




/* ------------------------------
   Header & Banner
------------------------------ */
.site-header {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
}

.site-header img {
  width: 100%;
  height: auto;
  display: block;
}

.site-banner {
  transition: transform 0.5s ease;
  will-change: transform;
}

.site-banner.hidden {
  transform: translateY(-100%);
}

/* ------------------------------
   Navigation Container & Logo
------------------------------ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.logo a {
  display: inline-block;
}

.home-logo {
  height: 40px;
  width: auto;
  display: block;
}


.logo {
  margin-right: 1rem;
}
/* ------------------------------
   Navigation Links
------------------------------ */



.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-group {
  display: flex;
  gap: 1rem;
}

.left-group {
  flex-shrink: 0;
}

.right-group {
  margin-left: auto;
}



.nav-links li {
  padding: 0.75em 1em;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00D1B2;
}

.nav-links li a.active {
  color: #006859;
  border-bottom: 2px solid #006859;
  display: inline-block;
  width: fit-content;
}

.nav-links a.active {
  font-weight: 500; /* or match non-active weight */
  line-height: 1;
}


/* ------------------------------
   Dropdown Submenu (Desktop)
------------------------------ */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 160px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

.has-submenu:hover .submenu {
  display: block;
}

.has-submenu.touch-open .submenu {
  display: block;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}
.submenu li a {
  display: block;
  padding: 0em 0em;
  text-decoration: none;
}







/* ------------------------------
   Hamburger Button (Mobile)
------------------------------ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* ------------------------------
   Responsive Styles
------------------------------ */

@media (max-width: 860px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a.active {
    border-bottom: none;
    background-color: #e6f2ef; /* optional highlight */
    padding-left: 1em;
    border-left: 4px solid #006859;
  }




  .hamburger {
    display: flex;
  }


  .nav-group {
    flex-direction: column;
    width: 100%;
  }


  .submenu {
    position: static;
    box-shadow: none;
    background: none;
    margin-left: 1em;
  }

  .submenu li a {
    font-size: 0.95em;
    opacity: 0.85;
    padding: 0.3em 1em;
  }


  .logo {
    flex-shrink: 0;
  }


  .nav-links li {
    margin: 0;
  }


.nav-links li {
  padding: 0.1em 1em;
}

  .nav-links li a {
    display: block;
    padding: 0em 1em;
    line-height: 1.2;
    margin: 0px;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
  }

  .nav-links li.subpage a,
  .submenu li a {
    padding-left: 2em;
    font-size: 0.95em;
    opacity: 0.85;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
  }


  /* Add spacing before first submenu item */
  .submenu li:first-child a {
    margin-top: 0.25em;
  }

  /* Add spacing after last submenu item */
  .submenu li:last-child a {
    margin-bottom: 0em;
    padding-bottom: 0;
  }

.has-submenu + li {
  margin-top: 0em; /* reduce gap above next main item */
    padding-top: 0;
}


  .submenu {
    display: block;
    position: static;
    box-shadow: none;
    background: none;
  }

  .has-submenu:hover .submenu {
    display: block;
  }

  .caret {
    display: none;
  }
}

.breadcrumb {
  font-size: 0.9em;
  margin: 0.2em 2em 0.8em;

  color: #333;
}

.breadcrumb a {
  text-decoration: none;
  color: #006859;
}

.breadcrumb span {
  color: #333;
}

@media (min-width: 860px) and (hover: hover) {
  .caret {
    display: none;
  }
}


/* ------------------------------
   Footer Styles
------------------------------ */
.site-footer {
  border-top: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
}

/* ------------------------------
   Content Block
------------------------------ */
.content-block {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem;
  line-height: 1.7;
}

.content-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #006859;
}

.content-block p {
  margin-bottom: 1rem;
}

.content-block ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.content-block ul li {
  margin-bottom: 1rem;
}