/*
    Breakpoint Ranges:
      - 1200px and up       : Default and large desktops)
      - 992px to 1199px     : Medium desktops/laptops
      - 768px to 991px      : Tablets (landscape) and small laptops
      - 576px to 767px      : Large mobile devices and Tablets (portrait)
      - Below 575px         : Small mobile devices
*/

/* Universal box-sizing fix - padding included in width */
#msc-new-header,
#msc-new-header *,
#msc-new-header *::before,
#msc-new-header *::after,
#mobile-header,
#mobile-header *,
#mobile-header *::before,
#mobile-header *::after,
#mobile-main-menu-content,
#mobile-main-menu-content *,
#mobile-account-menu-content,
#mobile-account-menu-content *,
footer,
footer *,
footer *::before,
footer *::after,
#desktop-search-bar-container,
#desktop-search-bar-container *,
#desktop-search-bar-container *::before,
#desktop-search-bar-container *::after,
#mobile-menu-search-navigation *,
#mobile-menu-search-navigation *::before,
#mobile-menu-search-navigation *::after
{
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Fix WordPress admin bar scroll-padding and margin issues */
html {
    scroll-padding-top: 0 !important;
    overflow-x: hidden !important;
}

/* Force HTML margin to 0 - WordPress tries to add 32px */
html,
html.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media screen and (max-width: 782px) {
    html #wpadminbar {
        position: fixed !important;
    }
}

/* Hide Admin Bar and reset header margin when Mobile Menu is Open */
body:has(#mobile-main-menu-content.open) #wpadminbar,
body:has(#mobile-account-menu-content.open) #wpadminbar {
    display: none !important;
}

body:has(#mobile-main-menu-content.open) #msc-new-header,
body:has(#mobile-main-menu-content.open) #mobile-header,
body:has(#mobile-account-menu-content.open) #msc-new-header,
body:has(#mobile-account-menu-content.open) #mobile-header {
    margin-top: 0 !important;
    top: 0 !important;
}

/* Admin Bar Adjustments for Mobile Fixed Header */
body.admin-bar #mobile-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #mobile-header {
        top: 46px;
    }
}

/* Enforce Open Sans on Header Top Links and User Nav */
#header-top-links a,
#user-nav a,
#user-nav .register-btn,
#user-nav .login-btn,
#services-mega-menu .mega-menu-grid .mega-menu-item *,
#mobile-main-menu-content *,
.account-menu-items *,
footer *,
#desktop-search-bar-container *,
#mobile-menu-search-navigation *
{
    font-family: 'Open Sans', sans-serif !important;
}

:focus:not(:focus-visible) { outline: none !important; }
:focus-visible { outline: 4px solid rgba(0,125,250,.6) !important; }

/* Default and Large Desktops) (1200px and above) */
#msc-new-header {
    box-shadow: unset !important;
    font-family: 'Open Sans',sans-serif !important;
}

#desktop-header {
    background-color: #ffffff;
    position: relative;
    z-index: 1000;
}

#desktop-header-top {
    max-height: 40px;
    background-color: #454445;
    transition: background-color 0.3s ease;
}

#desktop-header-top #header-top-links {
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    max-width: 1460px;
    height: 40px;
    margin: 0 auto;
    padding: 0px 20px;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 5px;
    color: #FFFFFF;
    line-height: 1.42857;
}

#desktop-header-top #header-top-links a {
    min-width: 115px;
    display: inline-block;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    position: relative;
    line-height: 1.42857;
}

#desktop-header-top #header-top-links a:hover,
#desktop-header-top #header-top-links a:focus {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

#desktop-header-top #header-top-links a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

#desktop-header-content {
    display: flex;
    margin: 0 auto;
    height: 70px;
    max-width: 1460px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

#desktop-header-content #header-logo {
    padding-left: 20px;
    margin-right: 50px;
}

#desktop-header-content #header-logo a:focus img {
    outline: 2px solid #2E8540;
    outline-offset: 2px;
}

nav#main-menu-container {
    flex: 1;
}

nav#main-menu-container > ul {
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 65px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav#main-menu-container li {
    min-width: 70px;
    margin-right: 10px;
    position: relative;
    line-height: 20px;
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
}

nav#main-menu-container a {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    color: #4d4d4d;
    text-decoration: none;
    padding: 0 12px;
    position: relative;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

nav#main-menu-container a::after {
  content: attr(data-text);
  height: 0;
  visibility: hidden;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  font-weight: bold;
}

nav#main-menu-container a:hover,
nav#main-menu-container a:focus {
  font-weight: bold;
}

nav#main-menu-container a:focus {
    outline: 2px solid #4d4d4d;
    outline-offset: 2px;
}

/* --- Mega Menu Styles --- */
.services-menu-parent {
    position: relative;
    width: 110px;
    height: 65px;
    display: flex;
    align-items: center;
}

#services-menu-toggle {
    padding: 0 35px 0 12px !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: #4d4d4d;
    font-size: 14px !important;
}

#services-menu-toggle[aria-expanded="true"] {
    font-weight: bold;
}

#services-menu-toggle::before {
    content: '\203A' !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(90deg) !important;
    font-size: 20px !important;
    transition: transform 0.3s ease !important;
    pointer-events: none !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 20px !important;
    text-align: center !important;
    z-index: 5 !important;
}

#services-menu-toggle[aria-expanded="true"]::before {
    transform: translateY(-50%) rotate(-90deg) !important;
}

#services-menu-toggle::after {
    display: block;
    content: attr(data-text);
    font-weight: bold;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

#services-mega-menu {
    position: absolute;
    left: 0;
    top: 108%;
    width: 1270px;
    max-width: 90vw;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 2px solid #dcdcdc;
    padding: 32px 36px 28px 36px;
    z-index: 1000;
    display: none;
    min-height: 180px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mega-menu-item {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  text-decoration: none;
  padding: 10px 12px !important;
  border-radius: 8px;
  transition: background-color 0.5s ease;
  text-transform: none !important;
}

.mega-menu-item:hover {
    background-color: #f5f5f5;
}

.mega-menu-item:focus {
    outline: 2px solid #2E8540;
    outline-offset: 2px;
}

.mega-menu-icon {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    flex-shrink: 0;
}

.mega-menu-content {
    flex: 1;
}

.mega-menu-title {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.mega-menu-description {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

#desktop-header-content #user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    line-height: 1.42857143;
}

#user-nav .register-btn,
#user-nav .login-btn {
    padding: 8px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 125px;
    text-align: center;
}

#user-nav .register-btn {
    background-color: #2E8540;
    color: #FFFFFF;
    border: 2px solid #2E8540;
}

#user-nav .login-btn {
    background-color: #FFFFFF;
    color: #333333;
    border: 2px solid #4d4d4d;
}

#user-nav .register-btn:hover {
    background-color: #287238FF;
}

#user-nav .login-btn:hover {
    background-color: #444444;
    border-color: #444444;
    color: #FFFFFF;
}

#user-nav .register-btn:focus,
#user-nav .login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 133, 64, 0.3);
}

#user-nav .home-link {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

#user-nav .home-link .home-icon {
    display: block;
    width: 30px;
    height: 25px;
    background-image: url('../icons/home-grey.png');
    background-size: contain;
    transition: background-image 0.3s ease;
}

#user-nav .home-link .home-icon:hover {
    background-image: url('../icons/home-green.png');
}

#user-nav .home-link .home-icon:focus {
    outline: 2px solid #2E8540;
    outline-offset: 2px;
}

.account-menu-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

#user-nav #account-menu {
    display: flex;
    justify-content: center;
    width: 80px;
    background-color: #4d4d4d;
    border: 3px solid #4d4d4d;
    border-radius: 30px;
    background-image: url('../icons/account-grey.png');
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: 8px center;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    height: 38px;
}

#user-nav #account-menu::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
    transition: transform 0.3s ease;
    pointer-events: none;
}

#user-nav #account-menu[aria-expanded="true"] {
    background-color: #2E8540;
    border-color: #2E8540;
    background-image: url('../icons/account-green.png');
}

#user-nav #account-menu[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(-180deg);
    border-top: 8px solid #ffffff;
}

/* Account Dropdown Menu Styles */
#account-menu-content {
    display: none;
    position: absolute;
    top: 34px;
    right: -5px;
    min-width: 320px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #dcdcdc;
    z-index: 1000;
    border-top: 0px;
    border-radius: 0 0 4px 4px;
    margin-top: 25px;
}

#account-menu-content .account-info {
    height: auto;
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
    background-color: #ecf7e9;
    word-wrap: break-word;
}

#account-menu-content .account-info .account-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}

#account-menu-content .account-info .account-email {
    font-size: 14px;
    color: #666;
    margin: 0;
}

#account-menu-content .account-menu-items {
    list-style: none;
    padding: 0;
    margin: 0px 0px 40px 0px;
}

#account-menu-content .account-menu-items li {
    margin: 0;
    border-bottom: 1px solid #eee;
}

#account-menu-content .account-menu-items li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 73px;
    color: #4d4d4d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 0px 30px;
    border-radius: 4px;
}

#account-menu-content .account-menu-items li a:hover,
#account-menu-content .account-menu-items li a:focus {
    background-color: #f5f5f5;
    color: #2E8540;
    outline: none;
}

/* Mobile Header Styles */
#mobile-header {
    display: none;
}

#mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    background-color: #ffffff;
    height: 70px;
    padding: 0;
}

.mobile-logo {
    display: flex;
    flex: 1;
    align-items: center;
    padding-left: 20px;
}

#mobile-main-menu {
    width: 44px;
    height: 44px;
    background-image: url('../icons/mobile-hamburger-menu-icon.png');
    background-size: 25px 22px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    margin-right: 20px;
    position: relative;
    border: none;
    background-color: transparent;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-main-menu:focus {
    outline: 2px solid #2E8540;
    outline-offset: 2px;
}

#mobile-main-menu .hamburger-close-icon {
    display: none;
    width: 25px;
    height: 22px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    justify-content: space-between;
}

#mobile-main-menu[aria-expanded="true"] {
    background-image: none;
}

#mobile-main-menu[aria-expanded="true"] .hamburger-close-icon {
    display: flex;
}

#mobile-main-menu .hamburger-close-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #4d4d4d;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#mobile-main-menu[aria-expanded="true"] .hamburger-close-icon .top-bun {
    transform: translateY(9px) rotate(45deg);
    background-color: #2E8540;
}

#mobile-main-menu[aria-expanded="true"] .hamburger-close-icon .patty {
    opacity: 0;
}

#mobile-main-menu[aria-expanded="true"] .hamburger-close-icon .bottom-bun {
    transform: translateY(-10px) rotate(-45deg);
    background-color: #2E8540;
}

#mobile-main-menu-content {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 0px 10px;
    overflow-y: auto;
}

#mobile-main-menu-content.open,
#mobile-account-menu-content.open {
    display: block;
}

body:has(#mobile-main-menu-content.open),
body:has(#mobile-account-menu-content.open) {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

/* Mobile menu content styles */
.mobile-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#mobile-main-menu-content .mobile-main-menu-items {
    width: 100%;
    list-style: none;
    padding: 10px 20px;
    margin: 0px 0px 20px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mobile-main-menu-content .mobile-main-menu-item {
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mobile-main-menu-content .mobile-main-menu-item:last-child {
    border-bottom: none;
}

#mobile-main-menu-content .mobile-main-menu-link {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4d4d4d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    transition: background-color 0.2s ease;
    min-height: 73px;
    text-align: center;
    position: relative;
    text-transform: uppercase;
}

/* Mobile Generic Submenu */
#mobile-main-menu-content .mobile-generic-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 5px;
}

#mobile-main-menu-content .mobile-generic-submenu-toggle::after {
    content: '\276F'; /* Heavy Right-Pointing Angle Quotation Mark Ornament (❯) */
    display: inline-block;
    margin-left: 10px;
    color: #4d4d4d;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    top: 0px;
    transition: transform 0.3s ease, color 0.3s ease;
}

#mobile-main-menu-content .mobile-generic-submenu-toggle[aria-expanded="true"] {
    color: #2E8540;
    background-color: white;
}

#mobile-main-menu-content .mobile-generic-submenu-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
    color: #2E8540;
}

#mobile-main-menu-content .mobile-main-menu-link:hover {
    background-color: #f5f5f5;
    color: #2E8540;
    text-decoration: none;
}

#mobile-main-menu-content .mobile-main-menu-link:focus {
    color: #2E8540;
    text-decoration: none;
}

#mobile-main-menu-content .mobile-buttons {
    margin-top: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#mobile-main-menu-content .mobile-join-btn,
#mobile-main-menu-content .mobile-login-btn {
    display: block;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    line-height: 24px;
    width: 200px;
    margin: 0 auto;
}

#mobile-main-menu-content .mobile-join-btn {
    background-color: #2E8540;
    color: #FFFFFF;
    border: 2px solid #2E8540;
}

#mobile-main-menu-content .mobile-login-btn {
    background-color: transparent;
    color: #333333;
    border: 2px solid #4d4d4d;
}

#mobile-main-menu-content .mobile-join-btn:hover,
#mobile-main-menu-content .mobile-join-btn:focus {
    background-color: #287238;
    color: #FFFFFF;
    text-decoration: none;
}

#mobile-main-menu-content .mobile-login-btn:hover,
#mobile-main-menu-content .mobile-login-btn:focus {
    background-color: #444444;
    border-color: #444444;
    color: #FFFFFF;
    text-decoration: none;
}

/* Mobile Services Submenu (Legacy) */
#mobile-main-menu-content .mobile-main-menu-services-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 5px;
}

#mobile-main-menu-content .mobile-main-menu-services-link::after {
    content: '\276F';
    display: inline-block;
    margin-left: 10px;
    color: #4d4d4d;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    top: 0px;
    transition: transform 0.3s ease, color 0.3s ease;
}

#mobile-main-menu-content .mobile-main-menu-services-link[aria-expanded="true"] {
    color: #2E8540;
    background-color: white;
}

#mobile-main-menu-content .mobile-main-menu-services-link[aria-expanded="true"]::after {
    transform: rotate(90deg);
    color: #2E8540;
}

#mobile-main-menu-content .mobile-services-submenu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;
}

#mobile-main-menu-content .mobile-services-submenu.open {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
}

#mobile-main-menu-content .mobile-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#mobile-main-menu-content .mobile-services-list li {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 8px 0px;
    border-bottom: 1px solid #e5e5e5;
}

#mobile-main-menu-content .mobile-services-list li:last-child {
    border-bottom: none;
}

#mobile-main-menu-content .mobile-service-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: background-color 0.2s ease;
    width: 100%;
    max-width: 300px;
    padding: 0px 20px;
}

#mobile-main-menu-content .mobile-services-list li:hover,
#mobile-main-menu-content .mobile-services-list li:focus {
    background-color: #f0f0f0;
    color: initial;
    text-decoration: none;
}

/* Mobile Generic Submenu Content */
#mobile-main-menu-content .mobile-generic-submenu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;
}

#mobile-main-menu-content .mobile-generic-submenu.open {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
}

#mobile-main-menu-content .mobile-generic-submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#mobile-main-menu-content .mobile-generic-submenu-list li {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    min-height: 73px;
    text-transform: uppercase;
    border-top: 1px solid #e5e5e5;
}

#mobile-main-menu-content .mobile-generic-submenu-list li:last-child {
    border-bottom: 1px solid #e5e5e5;
}

#mobile-main-menu-content .mobile-generic-submenu-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Centered for generic items usually */
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: background-color 0.2s ease;
    width: 100%;
    padding: 0px 20px;
}

#mobile-main-menu-content .mobile-generic-submenu-list li:hover,
#mobile-main-menu-content .mobile-generic-submenu-list li:focus {
    background-color: #f0f0f0;
    color: initial;
    text-decoration: none;
}

#mobile-main-menu-content .mobile-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    margin-right: 18px;
}

#mobile-menu-search-navigation {
  display: none;
}

@media (max-width: 1499px) {
    #services-mega-menu {
        width: 1100px;
    }
}

@media (max-width: 1299px) {
    #services-mega-menu {
        width: 1000px;
    }
}

/* Medium desktops/laptops (992px - 1199px) */
@media (max-width: 1199px) {
    #desktop-header-content {
        padding: 0 15px;
    }

    nav#main-menu-container li {
        margin-right: 15px;
    }

    #services-mega-menu {
        width: 800px;
    }
}

/* Mobile Bottom Navigation Main Menu */
#mobile-bottom-navigation {
    display: none;
}

#mobile-bottom-main-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    border-top: 1px solid #e5e5e5;
    position: relative;
    z-index: 2; /* Local stacking context */
}

/* Mobile Bottom Main Menu Icon Backgrounds */
#mobile-bottom-main-menu .bottom-menu-item {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background-color: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-bottom-main-menu .home-icon {
    background-image: url('../icons/home-grey.png');
    background-size: 36px 30px;
    background-repeat: no-repeat;
    background-position: center;
}

#mobile-bottom-main-menu .account-icon {
    background-image: url('../icons/account-grey.png');
    background-size: 37px 36px;
    background-repeat: no-repeat;
    background-position: center;
}

#mobile-bottom-main-menu .home-icon:active,
#mobile-bottom-main-menu .home-icon:focus {
    background-image: url('../icons/home-green.png');
}

#mobile-bottom-main-menu .account-icon[aria-expanded="true"] {
    background-image: url('../icons/account-green.png');
}

/* Mobile Account Menu Styles */
#mobile-account-menu-content {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 53px;
    width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 1099;
    overflow-y: auto;
}

#mobile-account-menu-content .account-info {
    padding: 20px;
    background-color: #ecf7e9;
    border-bottom: 1px solid #eee;
}

#mobile-account-menu-content .account-info .account-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

#mobile-account-menu-content .account-info .account-email {
    font-size: 14px;
    color: #666;
    margin: 0;
    word-break: break-all;
}

#mobile-account-menu-content .account-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-account-menu-content .account-menu-items li {
    margin: 0;
    border-bottom: 1px solid #eee;
}

#mobile-account-menu-content .account-menu-items li:last-child {
    border-bottom: none;
}

#mobile-account-menu-content .account-menu-items li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 73px;
    padding: 10px 30px;
    color: #4d4d4d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#mobile-account-menu-content .account-menu-items li a:hover,
#mobile-account-menu-content .account-menu-items li a:focus {
    background-color: #f5f5f5;
    color: #2E8540;
}

/* Contact Us Button Styles */
#contact-us-wrapper {
    left: 0;
    right: 0;
    bottom: 10px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-us-btn {
    display: inline-flex;
    align-items: center;
    background: #399944;
    color: #fff !important;
    font-weight: bold;
    font-size: 18px;
    border-radius: 30px;
    padding: 6px 32px 6px 10px;
    border: 2px solid #2E8540;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: relative;
}

.contact-us-btn:hover,
.contact-us-btn:focus {
    background: #2E8540 !important;
    color: #fff !important;
}

.contact-us-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    box-sizing: border-box;
}

.contact-us-icon i {
    color: #2e8540;
    display: block;
}

.contact-us-text {
    display: inline-block;
    vertical-align: middle;
}

/** Footer Styles **/
/* Main footer container */
footer {
    position: relative;
    width: 100%;
    margin: 0 auto;
    clear: both;
    display: table;
    z-index: 9;
    transition: margin-top 0.2s ease;
}

.boxed-footer {
    background: #e9e9e9;
    margin-top: auto;
    line-height: unset !important;
    color: #4A4A4A !important;
}

/* Footer Top Section - Links Area */
.footer-top {
    position: relative;
    width: 100%;
    margin: 0 auto;
    clear: both;
    display: table;
    z-index: 2;
    background: url(../icons/footer-bg.png) center !important;
}

.footer-top .icw-container {
    margin: 0px auto;
}

.footer-top .inner-footer {
    padding: 6px 0px 6px !important;
    color: #757575 !important;
    display: block !important;
    overflow: visible !important;
}

.footer-top .inner-footer .footer-primary-links {
    text-align: left;
    display: block;
    overflow: auto;
}

.footer-top .inner-footer .footer-primary-links .footer-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-top .inner-footer .footer-primary-links .footer-link {
    font-size: 16px !important;
    display: inline-block;
    margin: 10px 0px;
    line-height: 1.2;
}

.footer-top .inner-footer .footer-primary-links .footer-link a {
    font-size: 16px;
    color: #444444 !important;
    display: inline-block !important;
    padding: 0px 10px !important;
}

/* Bottom Footer Section - Contact & Copyright */
.bottom-footer {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    min-height: 57px;
    clear: both;
    margin: 0 auto;
    position: relative;
    line-height: unset !important;
    color: #4A4A4A !important;
}

.bottom-footer .contact-links {
    max-width: 1280px;
    padding-top: 10px;
    margin: 0 auto;
    padding-bottom: 10px;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
}

.bottom-footer .contact-links .footer-social {
    display: flex;
    gap: 5px;
}

.bottom-footer .contact-links .footer-social a {
    padding: 10px;
    width: 42px;
    height: 42px;
}

.bottom-footer .contact-links .footer-social .social-media-icon-footer {
    height: 22px;
    width: 22px;
}

.bottom-footer .contact-links .footer-contact {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    padding-right: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 2px;
}

.bottom-footer .contact-links .footer-contact .footer-tel {
    color: #4A4A4A;
    font-weight: 600;
    padding: 10px 20px;
}

.bottom-footer .no-payments {
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.bottom-footer .no-payments .footer-address {
    padding-bottom: 10px;
}

.bottom-footer .no-payments .footer-copyright-abn {
    display: flex;
    gap: 10px;
}

.bottom-footer .no-payments .footer-payment {
    padding: 10px;
}

/* Mobile Responsive Footer */
@media only screen and (max-width: 767px) {
    /* Footer Top - Mobile */
    .footer-top .icw-container {
        width: 100%;
    }

    .footer-top .inner-footer {
        text-align: center;
    }

    .footer-top .inner-footer .footer-primary-links .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 0px;
        padding-left: 35px;
        margin: 0px !important;
    }

    .footer-top .inner-footer .footer-primary-links .footer-link {
        margin: 0px !important;
        padding: 5px 0px;
        width: calc(33.333% - 5px);
        text-align: left;
    }

    .footer-top .inner-footer .footer-primary-links .footer-link a {
        font-size: 14px;
        color: #444444;
        display: inline-block;
        font-weight: 400;
    }

    /* Bottom Footer - Mobile */
    .bottom-footer .contact-links {
        padding-bottom: 0px;
    }

    .bottom-footer .contact-links,
    .bottom-footer .no-payments {
        display: flex;
        flex-direction: column;
        margin-bottom: 0px;
        align-items: center;
    }

    .bottom-footer .contact-links .footer-social a {
        padding: 5px;
        width: 32px;
        height: 32px;
    }

    .bottom-footer .no-payments .footer-copyright-abn {
        flex-direction: column;
        align-items: center;
    }
}

/* Show mobile header on screens below 991px */
@media (max-width: 991px) {
    header {
        z-index: 1099 !important;
    }

    #desktop-header {
        display: none;
    }

    #mobile-header {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        width: 100%;
        z-index: 1050;
    }

    #mobile-bottom-navigation {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1049;
    }

    #contact-us-wrapper {
        padding: 0;
        margin-top: 30px;
    }

    #mobile-search-button button {
      all: unset;
      cursor: pointer;
      display: inline-block;
    }

    #mobile-search-button .search-icon {
      background-image: url('../icons/search-grey.png');
      background-size: 20px 20px;
      background-repeat: no-repeat;
      background-position: center;
      min-width: 38px;
      min-height: 38px;
      background-color: #f4f4f4;
      border-radius: 50px;
    }

    #mobile-search-button[aria-expanded="true"] .search-icon {
      background-image: url('../icons/search-green.png');
      color: #488348;
      background-color: #dae3da;
      outline: 2px solid #488348 !important;
      border-radius: 50%;
    }

    /* Mobile Menu Search Navigation */
    #mobile-menu-search-navigation {
      display: flex;
      flex-direction: column;
      position: fixed;
      background-color: white;
      z-index: 10;
      width: 100%;
      top: 75px;
    }

    #mobile-menu-search-navigation.open {
      display: block;
    }

    #mobile-menu-search-navigation #mobile-search-bar {
      display: flex;
      align-content: center;
      background-color: #f2f2f2;
      min-height: 60px;
      padding: 10px;
    }

    #mobile-menu-search-navigation #mobile-search-bar form.search-form {
      width: 100%;
      display: flex;
      margin: 0;
    }

    #mobile-search-icon-button {
      all: unset;
      box-sizing: border-box;
      padding: 0;
      margin: 0;
      cursor: pointer;
    }

    #mobile-search-field {
      background: #fff;
      border-radius: 30px;
      display: flex;
      align-items: center;
      width: 100%;
      padding: 0 16px;
      height: 48px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.04);
      position: relative;
    }

    #mobile-search-field #mobile-search-clear {
      width: 34px;
      height: 34px;
    }

    #mobile-search-field #mobile-search-clear:hover {
      background-color: #dddddd;
    }

    #mobile-search-field .search-icon {
      display: inline-block;
      width: 34px;
      height: 34px;
      background: url('../icons/search-grey.png') no-repeat center center;
      background-size: 20px 20px;
      background-color: #efefef;
      border-radius: 50%;
      border: 2px solid #4d4d4d;
      box-sizing: border-box;
    }

    #mobile-search-field input[type="text"] {
      border: none;
      outline: none;
      font-size: 18px;
      flex: 1;
      background: transparent;
      color: #444;
      padding: 0;
    }

    #mobile-search-field input[type="text"]::placeholder {
      opacity: 0.75;
    }

    /* To prevent focus effect on input */
    #mobile-search-field input:focus {
      outline: none !important;
    }

    #mobile-search-field:has(input:focus) {
      outline: 2px solid #2E8540;
    }

    .search-clear-button {
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 8px;
      cursor: pointer;
      color: #4d4d4d;
      transition: background 0.2s;
      border: 2px solid;
      background-color: #efefef;
      font-size: 19px;
      font-weight: 600;
      font-family: 'Open Sans', sans-serif !important;
      padding: 0 0 3px 0;
      line-height: 1;
    }

}

/* Tablets (landscape) and small laptops (768px - 991px) */
@media (max-width: 767px) {
    #user-nav .register-btn,
    #user-nav .login-btn {
        padding: 8px 15px;
    }


}

/* Small mobile devices (below 575px) */
@media (max-width: 575px) {

}

/* Desktop dropdown and menu animation (max-height + opacity) */
#account-menu-content,
#services-mega-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
#account-menu-content.open,
#services-mega-menu.open {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
}

/* Mobile menu fade animation only */
#mobile-main-menu-content,
#mobile-account-menu-content,
#mobile-menu-search-navigation
{
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

#mobile-main-menu-content.open,
#mobile-account-menu-content.open,
#mobile-menu-search-navigation.open
{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* To override old display:none/block */
#account-menu-content,
#services-mega-menu,
#mobile-main-menu-content,
#mobile-account-menu-content {
    display: block !important;
}

@media (max-height: 820px) {
    #mobile-account-menu-content .account-menu-items li a {
        height: 63px;
    }
}

@media (max-height: 750px) {
    #mobile-account-menu-content .account-menu-items li a {
        height: 48px;
    }
}

.colorful-border {
    background: #fff url(../img/header-border.png) 0 0 repeat;
    width: 100%;
    height: 5px;
    position: relative;
    background-size: 100%;
    z-index: -1;
}

@media only screen and (max-width: 767px) {
    .colorful-border {
        height: 3px;
    }
}

/* Font Awesome Envelope Icon as SVG - Green version */
.fa-envelope-alt::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%232e8540" d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.fa-arrow-right-long::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><path d='M3 12h17m-5-5l5 5-5 5' stroke='currentColor' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* Mobile Header & Menu - Fix font-size and color inheritance issues */
/*
   WHY NEEDED: WordPress theme sets body font-size to 17px and color to rgb(58,58,58)
   These rules override that to match the original design (14px, rgb(51,55,69))
*/
#mobile-header {
    font-size: 14px !important;
    color: rgb(51, 55, 69) !important;
}

#mobile-main-menu-content {
    font-size: 14px !important;
    color: rgb(51, 55, 69) !important;
}

#mobile-main-menu-content .mobile-main-menu-items {
    font-size: 14px !important;
    color: rgb(51, 55, 69) !important;
}

#mobile-main-menu-content .mobile-main-menu-item {
    font-size: 14px !important;
    color: rgb(51, 55, 69) !important;
}

#mobile-main-menu-content .mobile-services-submenu {
    font-size: 14px !important;
    color: rgb(51, 55, 69) !important;
}

#mobile-main-menu-content .mobile-buttons {
    font-size: 14px !important;
    color: rgb(51, 55, 69) !important;
}

/* Fix button heights - was 44px, should be 52px to match original design */
#mobile-main-menu-content .mobile-join-btn,
#mobile-main-menu-content .mobile-login-btn {
    height: 52px !important;
    padding: 12px !important;
}

/* Generic Dropdown Submenu Styles */
.has-submenu {
    position: relative;
    display: flex;
    align-items: center;
}

.submenu-toggle {
    padding-right: 25px !important; /* Make room for arrow */
}

.submenu-toggle::after {
    content: '\203A';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 20px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.submenu-toggle[aria-expanded="true"] {
    font-weight: bold !important;
}

.submenu-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(-90deg);
    font-weight: bold;
}

.submenu-content {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #dcdcdc;
    padding: 10px 0 !important;
    border-radius: 4px;
    z-index: 1001;
    flex-direction: column;
    align-items: flex-start !important;
    height: auto !important;
}

.submenu-content.open,
.submenu-wrapper.open .submenu-content {
    display: flex !important;
}

.submenu-content li {
    width: 100%;
    margin: 0 !important;
    min-width: auto !important;
}

.submenu-content li a {
    display: block;
    width: 100%;
    padding: 8px 20px !important;
    text-transform: none !important;
    color: #4d4d4d;
    font-weight: 500 !important;
    text-align: left;
    font-family: 'Open Sans', sans-serif !important;
}

.submenu-content li a:hover {
    background-color: #f5f5f5;
    color: #2E8540;
}

#mse-button-search {
    display: block;
    width: 30px;
    height: 25px;
    background-image: url('../icons/search-grey.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: background-image 0.3s ease;
    margin-right: 5px;
}

#mse-button-search:hover,
#mse-button-search[aria-expanded="true"] {
    background-image: url('../icons/search-green.png');
}

#mse-cart {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.mse-cart-icon {
    display: block;
    width: 30px;
    height: 25px;
    position: relative;
    background-image: url('../icons/cart-grey.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease;
}

#mse-mobile-cart .mse-cart-icon {
    width: 37px;
    height: 30px;
}

#mse-mobile-cart-header {
    padding: 0 8px;
}

.mse-cart-icon:hover, body.woocommerce-cart .mse-cart-icon {
    background-image: url('../icons/cart-green.png');
}

.mse-cart-icon:focus {
    outline: 2px solid #2E8540;
    outline-offset: 2px;
}

.mse-cart-icon .cart-item-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #2E8540;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    line-height: 1.5em;
    width: 1.5em;
    text-align: center;
}

/* Desktop Search Bar */
#desktop-search-bar-container {
    background-color: #f2f2f2;
    width: 100%;
    padding: 12px 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 1px solid #e5e5e5;
    display: none;
}

#desktop-search-bar-container[aria-hidden="false"],
#services-mega-menu[aria-hidden="false"],
#account-menu-content[aria-hidden="false"] {
    display: block;
}

#desktop-search-bar-container .search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
}

#desktop-search-bar-container .search-field {
    width: 100%;
    max-width: 100%; /* controlled by wrapper */
    height: 48px;
    border-radius: 25px;
    border: 1px solid #e5e5e5;
    padding: 0 90px 0 25px; /* Increased right padding for buttons */
    font-size: 16px;
    background-color: #f7f7f7;
    color: #4d4d4d;
    outline: none;
    transition: all 0.3s ease;
}

#desktop-search-bar-container .search-field:focus {
    border: 2px solid #2E8540 !important;
    outline: none !important;
}

/* Hide the default webkit search cancel button */
#desktop-search-bar-container .search-field::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

#desktop-search-bar-container .search-submit,
#desktop-search-bar-container .search-clear {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

#desktop-search-bar-container .search-submit {
    right: 59px; /* Positioned to the left of close button */
    display: inline-block;
    width: 38px;
    height: 38px;
    background: url('../icons/search-grey.png') no-repeat center center;
    background-size: 20px 20px;
    background-color: #efefef;
    border-radius: 50%;
    border: 2px solid #4d4d4d;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

#desktop-search-bar-container .search-clear {
    right: 16px; /* Positioned at far right */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #4d4d4d;
    background: #efefef;
    color: #4d4d4d;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#desktop-search-bar-container .search-submit:hover,
#mobile-search-icon-button:hover {
    background-image: url('../icons/search-green.png');
    border-color: #2E8540;
    background-color: #fff;
}

#desktop-search-bar-container .search-clear:hover {
    background-color: #dddddd;
}
