body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Style the navigation bar */
nav {
  background-color: #fff; /* Change to white */
  color: #333;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.nav-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-header {
  display: flex;
  align-items: center;
}

.nav-header img {
  height: 50px;
  margin-right: 20px;
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.nav-text h1 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
}

.nav-text h2 {
  font-size: 1em;
  font-weight: normal;
  margin: 0;
  color: #653819; /* Lighter gray color for contrast */
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px; /* Add space between the menu items */
  margin-top: 10px; /* Add some space between the text and the menu */
  padding-left: 0; /* Align to the left */
}

.menu li {
  display: inline; /* Display menu items in a row */
}

.menu a {
  color: #333; /* Change to dark color */
  text-decoration: none;
  padding: 10px 20px;
  transition: background-color 0.3s;
  text-align: left; /* Left align the text */
}

.menu a:hover {
  background-color: #f4f4f4;
  border-radius: 5px;
}

.menu a.active {
  background-color: #ddd; /* Highlight the active link */
  border-radius: 5px;
}

/* Style for dropdown menu */
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.menu > li {
  position: relative;
  margin: 0; /* Remove any extra margin */
  padding: 0; /* Remove any extra padding */
}

.menu > li > a {
  text-decoration: none;
  padding: 10px 20px; /* Adjust padding for consistent spacing */
  display: block;
  color: #000;
  text-align: center; /* Center-align text */
}

.menu > li:hover .dropdown-menu {
  display: block;
  opacity: 1; /* Make it fully visible */
  transform: translateY(0); /* Reset the position */
}

.dropdown-menu {
  display: block; /* Keep it block for animation purposes */
  opacity: 0; /* Start as invisible */
  transform: translateY(-10px); /* Start slightly above */
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  background: linear-gradient(135deg, #f9f9f9, #e6e6e6); /* Gradient background */
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  z-index: 1000;
  transition: opacity .8s ease, transform 0.5s ease; /* Smooth transition */
  pointer-events: none; /* Prevent interaction when hidden */
}

.menu > li:hover .dropdown-menu {
  pointer-events: auto; /* Enable interaction when visible */
}

.dropdown-menu li {
  width: 200px;
  border-bottom: 1px solid #ddd; /* Add dividers between items */
}

.dropdown-menu li a {
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  color: #333;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #ccc;
}


/* Style the welcome message */
.welcome-msg {
  text-align: center;
  margin: 50px 0;
  padding: 100px 0;
  background: url('images/waterflow.gif') no-repeat center center;
  background-size: cover;
  color: #fff;
}

.welcome-msg h1 {
  font-size: 3em;
  color: #fff;
}

/* Style the welcome message */
.welcome-message {
  text-align: center;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Set a fixed width */
}

.welcome-message p {
  font-size: 1.2em;
  color: #333;
  margin: 10px 0;
}

/* Enhance the footer */
footer {
  background-color: #653819; /* Change to white */
  color: #fff;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  margin-top: auto;
  width: 100%;
}

/* Style the e-board photo */
.e-board-photo {
  width: 150px; /* Set a consistent width */
  height: 150px; /* Set a consistent height */
  object-fit: cover; /* Ensures the image fits within the dimensions */
  border-radius: 50%; /* Optional: Makes the images circular */
}

/* Responsive Design Media Queries */
/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
  .nav-main {
    flex-direction: column;
    padding: 0 10px;
  }

  .nav-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 10px;
  }

  .nav-header img {
    height: 40px;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .nav-text h1 {
    font-size: 1.2em;
  }

  .nav-text h2 {
    font-size: 0.9em;
  }

  .menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 15px;
  }

  .menu > li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .menu > li > a {
    padding: 15px 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f9f9f9;
    display: none;
  }

  .menu > li:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: none;
  }

  .dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid #ddd;
  }

  .dropdown-menu li a {
    padding: 12px 20px;
    font-size: 0.9em;
  }

  .welcome-msg {
    padding: 30px 10px;
    text-align: center;
  }

  .welcome-msg h1 {
    font-size: 2em;
    padding: 10px;
  }

  .e-board-photo {
    width: 120px;
    height: 120px;
  }

  .contact-info {
    padding: 0 15px;
  }

  .contact-info h2 {
    font-size: 1.4em;
  }

  .contact-info p {
    font-size: 1em;
  }
}

/* Tablet Devices (max-width: 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .nav-main {
    padding: 0 15px;
  }

  .nav-header img {
    height: 45px;
  }

  .menu {
    gap: 15px;
  }

  .menu > li > a {
    padding: 8px 15px;
    font-size: 0.95em;
  }

  .dropdown-menu li {
    width: 180px;
  }

  .welcome-msg {
    padding: 40px 20px;
  }

  .welcome-msg h1 {
    font-size: 2.5em;
  }

  .e-board-photo {
    width: 140px;
    height: 140px;
  }

  .contact-info {
    padding: 0 20px;
  }
}

/* Large Desktop Devices (min-width: 1200px) */
@media screen and (min-width: 1200px) {
  .nav-main {
    max-width: 1400px;
  }

  .contact-info {
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* Hamurger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
  .nav-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .nav-header {
    flex-direction: row;
    text-align: left;
    margin-bottom: 0;
  }

  .nav-header img {
    height: 40px;
    margin-right: 15px;
    margin-bottom: 0;
  }

  .nav-text h1 {
    font-size: 1.1em;
  }

  .nav-text h2 {
    font-size: 0.8em;
  }

  .hamburger {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 80px 0 20px 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .menu.active {
    right: 0;
  }

  .menu > li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .menu > li > a {
    padding: 15px 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    display: block;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f9f9f9;
    display: none;
    pointer-events: auto;
  }

  .menu > li:hover .dropdown-menu,
  .menu > li.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid #ddd;
  }

  .dropdown-menu li a {
    padding: 12px 30px;
    font-size: 0.9em;
  }

  /* Overlay for mobile menu */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .menu-overlay.active {
    display: block;
  }
}