@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

.site-header {
  font-family: 'Raleway', sans-serif;
  position: relative;
  z-index: 1000; /* High z-index to keep the header on top */
}

.menu-toggle,.menu-close-container{display:none;}

.container {
  max-width: 1400px;
  max-height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.header__logo {
  flex: 1;
  margin-right: 20px;
}

.header__logo img {
  height: auto;
  width: auto;
  max-width: 170px;
  max-height: 120px;
}

.header-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  right: 10px;
  top: 10px;
  margin-left: auto; /* Push to the right */
  margin-right: 36px;
  order: 2;
  position: absolute; /* Changed from static positioning */
  z-index: 10; 
  gap: 8px;
}

.btn-referral, .contact-number, .btn-book-now {
  margin: 15px 0;
  padding: 10px 18px;
  color: #fff;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  font-size: 18px;
  align-items: left;
}

.navbar {
  flex: 2;
  display: flex;
  justify-content: center;
}

/* Updated .nav-menu styles */
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: flex-end;    width: 100%;
  padding-left: 0;
  margin: 6rem auto 0;
  position: relative; /* Added relative positioning */
}

.nav-item {
  position: relative;
  font-size: 15px;
}

.nav-link {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #8152A1;
}

/* Simplified dropdown styles */
.dropdown {
  display: none;
  position: absolute;
  top: 100%; /* Position the dropdown below the parent item */
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Added box shadow for a subtle effect */
  z-index: 100; /* Ensure dropdown is above other elements */
  width: 200%;
}

#why-monarch-dropdown {
  width: 100%;
}

.nav-item:hover>.dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

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

.btn-referral {
  background-color: #DE2140;
}

.btn-referral:hover {
  background-color: #8152A1;
  color: #fff;
}

.contact-number {
  background-color: #F79568;
  margin-left: 5px;
}

.contact-number:hover {
  background-color: #00B3B0;
  color: #fff;
}

.btn-book-now {
  background-color: #00B3B0;
  margin-left: 5px;
}

.btn-book-now:hover {
  background-color: #F79568;
  color: #fff;
}

.flash-effect {
  animation: flash-animation 0.5s;
}

/*
 * .nav-link.dropdown-indicator:after {
  content: '▼';
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.nav-link.dropdown-indicator:hover:after {
  transform: rotate(180deg);
}

.nav-link.no-dropdown:after {
  content: none;
}
*/

.nav-link.dropdown-indicator span{padding:5px 0;}

/* Hamburger menu functionality for mobile */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
}

/* General styling for the navigation menu */
/* General styling for the navigation menu */
.mmhg-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif; /* Ensure font consistency */
}

.mmhg-nav-item {
    position: relative;
    display: inline-block;
}

.mmhg-nav-link {
    display: block;
    padding: 10px 15px;
    color: #333; /* Dark grey text color */
    text-decoration: none;
    border: none; /* No borders for a clean look */
      font-size: 18px;
}

/* Dropdown Menu styling */
.mmhg-dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff; /* White background */
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow for depth */
    border-radius: 3px; /* Rounded corners for modern appearance */
    border: 1px solid #ccc; /* Slight border for definition */
    z-index: 1;
}

.mmhg-dropdown-menu a {
    color: black; /* Black text for dropdown items */
    padding: 8px 12px; /* Padding for spacing */
    text-decoration: none;
    display: block;
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

<style>
/* Reset style for dropdowns and submenus */
.mmhg-nav-item .mmhg-dropdown-menu {
    display: none; /* Ensure submenus are not displayed by default */
}

.mmhg-nav-item:hover .mmhg-dropdown-menu {
    display: block; /* Display submenu when hovering over the main menu item */
  padding:0;
}

/* Specific hover styles for submenu items to display their dropdowns */
.mmhg-dropdown-submenu:hover .mmhg-dropdown-menu {
    display: block; /* Display the nested submenu when hovering over its parent item */
}

/* Ensuring only the hovered submenu is visible */
.mmhg-dropdown-submenu {
    position: relative;    list-style: none;
}

.mmhg-dropdown-submenu .mmhg-dropdown-menu {
    display: none; /* Hide submenus initially */
    position: absolute;
    left: 100%; /* Position submenus to the right of the parent menu item */
    top: 0; /* Align submenu top with parent item top */
}
.mmhg-dropdown-submenu .mmhg-dropdown-menu li{list-style:none;}

.mmhg-dropdown-submenu:hover .mmhg-dropdown-menu {
    display: block; /* Show submenu on hover */
}
</style>


/* Responsive adjustments for mobile views */
@media (max-width: 768px) {
    .mmhg-dropdown-menu {
        position: static; /* Full width on smaller screens */
    }
  .nav-link.dropdown-indicator span{padding:10px;}

}

@media (max-width: 768px) {
  .site-header {
    padding: 0; /* Reduced padding for a tighter header */
    border: none;
  }
  .site-header .container{display:block;}
  
  .menu-toggle{display:block;position:absolute;right:0;top:15px;}
  .menu-toggle img{width:32px;height:32px;}
  .menu-close-container{display:block;text-align:right;padding:20px 30px 0;}
  .menu-close-container img{width:24px;height:24px;}
  
  .menu-close{display:none;}
  
  .container {
    flex-direction: column;
    align-items: center; /* Center align for a tighter look */
    padding: 0; /* Remove padding */
    margin-top: -30p;
  }

  .header__logo {
    order: 1;
    margin: 0;
    align-self: center;
    position: relative;
    display: block;
    max-width: 100%;
  }

  .header__logo img {
    max-width: 110px; /* Smaller logo width */
    max-height: auto; /* Auto height to maintain aspect ratio */
  }

  .header-actions {
    order: 3;
    flex-direction: row;
    justify-content: space-between; /* Distribute space between buttons */
    position: static;
    justify-content: space-between; /* Distribute space between buttons evenly */
    align-items: center; /* Center align items vertically */
    width: 100%;
    margin-top: 0; /* Remove any top margin */
    padding: 0 10px; /* Padding inside the actions container */
  }

  .btn-referral, .contact-number, .btn-book-now{
    padding: 5px 10px; /* Slightly smaller padding for a more compact button */
    font-size: 12.5px; /* Smaller font size for compactness */
    margin: 0 5px; /* Smaller margin for tight grouping */
    
  }

  .navbar {
    order: 2;
    justify-content: flex-start;
    width: 100%;
    margin-top: 0; /* Adjust navbar margin for sleekness */
  }

  .nav-menu {
    display: none; /* Keep nav-menu hidden initially */
    flex-direction: column;
    width: 100%;
    padding: 0;
    position: fixed;
    top: -100%; /* Start off-screen */
    left: 0;
    right: 0;
    transition: top 0.3s ease; /* Smooth transition for sliding down */
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
    z-index: 1000; /* Higher z-index to overlay other content */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
  }
  .nav-menu.active {
    display: block; /* Show when active */
    flex-direction: column; /* Stack items vertically */
    width: 100%; /* Use the full width */
    padding: 0; /* No padding */
    position: fixed; /* Fixed positioning to cover the entire screen */
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
    z-index: 1000; /* Higher z-index to overlay other content */
    margin: 0;
        max-height: 100%;
    overflow-y: auto;
  }

  .nav-item {
    text-align: center; /* Center align the text */
    padding: 5px 0; /* Smaller padding for a compact look */
  }

  .nav-link {
    padding: 12px 20px; /* Reduced padding for nav items */
  }

  /* Simplify dropdown styles */
  .dropdown {
    position: static;
    left: 50%;
    transform: none;
    box-shadow: none;
    background-color: #f9f9f9; /* Lighter background for the dropdown */
    width: auto; /* Adjust the width as necessary */
    text-align: center; /* Center the text */
  }

  .nav-item:hover .dropdown {
    box-shadow: none; /* Remove shadow on mobile for sleeker look */
  }
  
  .nav-item:hover .dropdown {
  display: none;
  }
  
  .dropdown.open {display:block !important;}

  .dropdown a {
    padding: 8px 0; /* Reduce padding for dropdown items */
  }

  .dropdown {
    display: none; /* Hide dropdown by default */
  }

  .dropdown.show {
    display: block; /* Show dropdown when 'show' class is added */
  }

  /* Ensure contact number is visible and aligned properly */
  .contact-number {
    order: 2;
    margin-right: 0;
  }

   .hamburger {
    display: block;
    position: absolute;
    top: 15px; /* Adjust as needed */
    right: 15px; /* Adjust as needed */
    z-index: 1001;
    font-size: 24px; /* Adjust size as needed */
    cursor: pointer;
  }

  .menu-toggle-checkbox:checked ~ .container .nav-menu {
    display: flex; /* Show the menu as a flex container */
    top: 50%; /* Bring into view, centered vertically */
    transform: translateY(-50%); /* Adjust vertical position to truly center */
  }
 
  .menu-toggle-checkbox:checked ~ .container .hamburger {
    transform: rotate(180deg); /* Optional: Flip the arrow to indicate "close" */
  }

}

/* Adjust the flash effect to be less pronounced for a sleeker look */
@keyframes flash-animation {
  0%, 100% { background-color: #ffffff; }
  50% { background-color: #eeeeee; } /* Lighter grey for subtle effect */
}

/* Hamburger menu functionality */
.menu-toggle-checkbox {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

.menu-toggle-checkbox:checked ~ .container .nav-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
  z-index: 1001; /* Higher z-index to overlay other content */
}

.menu-toggle-checkbox:checked ~ .container .nav-menu .nav-item {
  text-align: center;
}

.menu-toggle-checkbox:checked ~ .container .nav-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%; /* Position the dropdown below the parent item */
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-toggle-checkbox:checked ~ .container .nav-menu .nav-item:hover .dropdown {
  display: block;
}

@media (max-width: 767px) {
.menu-close{display:block;cursor:pointer;text-align: right;padding: 20px;}
.menu-close svg{width: 24px;}
.menu-close svg path{fill:#00B3B0;}
}

#locations-dropdown ul{padding:0;}
#locations-dropdown li{margin:0;list-style:none;}
#locations-dropdown li:hover .dropdown{display:block;top: 0;left: 99%;width: 160px;z-index:999;} 

@media (max-width: 768px) {
  #locations-dropdown .dropdown{display:block;position:static;width:100%;}
  #locations-dropdown>ul>li>a{font-weight:700;}
}