/* Mobile Layout Fixes - Add to beginning of CSS file */
* {
  box-sizing: border-box; /* Include padding and borders in width calculations */
}

html, body {
  margin: 0; /* Remove default margins */
  padding: 0; /* Remove default padding */
  width: 100%; /* Ensure full width */
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Force full width on main containers */
.top-menu, .page-header {
  width: 100% !important; /* Force full width */
  margin: 0; /* Remove any margins */
  padding-left: 0; /* Remove left padding */
  padding-right: 0; /* Remove right padding */
}

/* Mobile-specific adjustments */
@media screen and (max-width: 768px) {
  .top-menu {
    width: 100vw; /* Use viewport width */
    margin-left: calc(-50vw + 50%); /* Center and extend to edges */
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-header {
    width: 100vw; /* Use viewport width */
    margin-left: calc(-50vw + 50%); /* Center and extend to edges */
    padding-left: 10px; /* Restore some padding for text */
    padding-right: 10px;
  }
  
  /* Ensure nav menu spans full width */
  nav {
    width: 100%;
  }
  
  nav ul {
    width: 100%;
    padding: 0;
    margin: 0;
  }
}

/* General Menu Styles */
nav ul {
  list-style: none; /* Remove default bullet points */
  padding: 0;
  margin: 0;
  text-align: center; /* Center menu items */
}

nav ul li {
  display: inline-block; /* Display items horizontally */
  position: relative; /* Needed for dropdown positioning */
}

nav ul li a {
  text-decoration: none; /* Remove underlines from links */
  display: block; /* Make the whole area clickable */
  padding: 10px 15px; /* Add some space around menu items */
}

/* Top Menu Specific Styles */
.top-menu {
  background-color: rgb(0, 102, 0); /* Dark green background */
  padding: 5px 0; /* Add some vertical padding */
}

.top-menu ul li a {
  color: white; /* White text */
  font-family: Helvetica, Arial, sans-serif; /* Match existing font if possible */
}

.top-menu ul li a:hover {
  background-color: rgb(0, 80, 0); /* Slightly darker green on hover */
}

/* Dropdown Menu Styles */
.dropdown-content {
  display: none; /* Hide dropdowns by default */
  position: absolute;
  background-color: rgb(0, 102, 0); /* Match top menu background */
  min-width: 200px; /* Set a minimum width */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Add a subtle shadow */
  z-index: 1; /* Ensure dropdown appears above other content */
  text-align: left; /* Align dropdown items to the left */
}

.dropdown-content li {
  display: block; /* Display dropdown items vertically */
}

.dropdown-content li a {
  color: white; /* White text for dropdown items */
  padding: 12px 16px;
}

.dropdown-content li a:hover {
  background-color: rgb(0, 80, 0); /* Darker green on hover */
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Bottom Menu Specific Styles */
.bottom-menu {
  background-color: white; /* White background */
  padding: 10px 0; /* Add some padding */
  border-top: 1px solid #eee; /* Optional: add a top border */
}

.bottom-menu ul li a {
  color: #0000EE; /* Standard link blue, or choose another */
  font-family: Helvetica, Arial, sans-serif; /* Match existing font */
  padding: 5px 10px;
}

.bottom-menu ul li a:hover {
  text-decoration: underline; /* Underline on hover */
}



/* Page Header Styles */
.page-header {
  background-color: rgb(0, 102, 0); /* Dark green background */
  color: white; /* White text */
  text-align: center; /* Center align the text */
  padding: 20px 10px; /* Add some padding top/bottom and left/right */
  font-family: Helvetica, Arial, sans-serif; /* Match existing font */
}

.page-header h1 {
  margin: 0; /* Remove default margin from h1 */
  font-size: 2.5em; /* Adjust size as needed */
}

.page-header .tagline {
  margin: 5px 0 0 0; /* Add a small top margin, remove others */
  font-style: italic;
  font-size: 1em; /* Adjust size as needed */
}