/* Navbar Container */
.custom-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space between left and right sections */
  background-color: white;
  padding: 0.8rem;
  gap: 0;
}

.navbar-left {
  display: flex;
  align-items: center;
}
/* Site Title */
.custom-navbar .wp-block-site-title {
  font-size: 24px;
  color: #1c375b;
  font-weight: bold;
  margin: 0;
}

.wp-block-site-title {
  font-size: 24px;
  color: #1c375b;
  font-weight: bold;
  margin-right: 20px; /* Add spacing between site title and dropdown */
}

.custom-navbar .wp-block-site-title a:hover {
  text-decoration: none;
}

/* Dropdown Navigation Menu */
.custom-navbar-dropdown {
  display: flex;
  align-items: center;
}

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

.dropdown-item {
  position: relative;
  margin-right: 20px;
}

.dropdown-item a {
  text-decoration: none;
  color: #1c375b;
  font-size: 18px;
  padding: 10px;
  transition: color 0.3s ease;
}

.dropdown-item a:hover {
  color: #d2544a;
}

/* Submenu styles */
.submenu {
  position: absolute;
  top: 100%; /* Aligns submenu directly below the parent */
  left: 0;
  width: 400px; /* Fixed width for consistent sizing */
  background-color: #ffffff;
  list-style: none;
  display: none; /* Hidden by default */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 5px;
  padding: 0.8rem 0.5rem;
  padding-inline-start: 0;
}

/* Submenu list items */
.submenu li {
  padding: 0.7rem 0.7rem;
}

/* Submenu links */
.submenu li a {
  color: #333;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap; /* Prevent text from wrapping */
  display: block; /* Ensures links take up full width of the submenu */
  padding: 0; /* Adjust link padding if necessary */
}

.submenu li a:hover {
  color: #0073aa;
}

/* Show submenu on hover */
.dropdown-item:hover .submenu {
  display: block;
}

/* Navigation Menu */
.custom-navbar-menu {
  display: flex;
  flex-direction: row;
}

.custom-navbar-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.custom-navbar-list li {
  margin: 0 15px;
}

.custom-navbar-list a {
  color: #1c375b;
  text-decoration: none;
  font-size: 18px;
}

.custom-navbar-list a:hover {
  color: #d2544a; /* Hover color */
}

.hamburger {
  display: none; /* Hidden by default */
  font-size: 40px;
  color: #1c375b; /* White icon color */
  background-color: #ffffff; /* Same as navbar for a consistent look */
  border-radius: 5px; /* Rounded corners */
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.hamburger:hover {
  background-color: #d2544a; /* Highlighted background on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.hamburger:active {
  background-color: #a84335; /* Slightly darker on click */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduce shadow on click */
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .custom-navbar {
    padding: 0.4rem; /* Reduce padding for smaller screens */
  }

  /* Hide the menu links */
  .custom-navbar-menu {
    display: none;
  }
  .custom-navbar-dropdown {
    display: none;
  }

  .hamburger {
    display: flex; /* Make it visible */
    align-items: center;
    justify-content: center;
  }
}
