.hamburger-menu {
    position: fixed;
    top: 0px;
    right: 8px;
    z-index: 1000;
    cursor: pointer;
    width: 4.5rem;
    /* Adjust as needed */
    height: 4.5rem;
    /* Adjust as needed */
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
    box-sizing: border-box;
    background-color: #ffd322;
    display: flex !important;
    justify-content: center;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
    display: none;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    margin-top: 24px;
    height: 2px;
    /* Thickness of the menu lines */
    width: 60%;
    background: rgba(0, 62, 113, 1);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    /* Smooth transition */

}

header #nav-icon3.hamburger-menu {
    display: none;
}

#nav-icon3 span:nth-child(1) {
    top: 0px;
}

#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
    top: 10px;
}

#nav-icon3 span:nth-child(4) {
    top: 20px;
}

#nav-icon3.open span:nth-child(1),
#nav-icon3.open span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50%;
}

#nav-icon3.open span:nth-child(2) {
    transform: rotate(45deg);
}

#nav-icon3.open span:nth-child(3) {
    transform: rotate(-45deg);
}



.main-navigation .sub-menu-list {
    display: none;
}

/* Web Styles: */
.site-header {
    display: flex;
    justify-content: space-between;
    padding-left: 2rem;
    padding-top: 2rem;
    /* Add more styles for your header */
}

.main-navigation .site-header {
    padding-left: 2rem;
    align-items: left;
}

#nav-icon3.hamburger-menu {
    display: none;
}

#mobile-menu-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 62, 113, .75);
    backdrop-filter: blur(5px);
    left: 0;
    display: none;
    z-index: 999;
}

.mobile-button {
    display: none;
}

@media screen and (max-width: 768px) {
    .menu-item-has-children>a {
        display: inline-block;
        margin-right: 1rem;
    }
    /* Add underline to selected submenu */
    .menu-item-has-children.active::after {
        content: '';
        position: absolute;
        left: 0;
        right: 1rem;
        top: 60px;
        height: 2px;
        background-color: #ffd322; 
        z-index: 1;
    }
    .menu-item-has-children {
        position: relative; 
        width: 100%;
    }


    .carrot-icon,
    .pipe-icon {
        display: inline-block;
        /* Makes sure icons are laid out inline */
        position: relative;
        /* Keeps icons in document flow, helping with vertical alignment */
        vertical-align: middle;
        /* Aligns icons with the middle of the text */
    }

    .carrot-icon::after {
        right: 1rem;
        content: '';
        display: inline-block;
        margin-left: -.5rem;
        margin-bottom: 24px;
        width: 32px;
        height: 32px;
        border-left: 3px solid white;
        border-bottom: 3px solid white;
        transition: transform 0.3s ease;
        transform: rotate(315deg);
    }

    /* Style for when the icon is toggled to point upwards */
    .carrot-icon.up::after {
        transform: rotate(135deg);
        /* Adjust margin to be visually centered when clicked */
        margin-bottom:-16px;
    }

    .pipe-icon::after {
        right: 1rem;
        content: '';
        display: inline-block;
        margin-left: 1rem;
        margin-right: 0rem;
        margin-bottom: 4px;/*adjust for centerring pipe icon*/
        width: 32px;
        height: 42px;
        border-left: 3px solid #ffd322;
    }

    .horizontal-divider::after {
        content: '';
        display: inline-block;
        margin-left: 26px;
        width: 32px;
        height: 32px;
        border-bottom: 100% solid #ffd322;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-button {
        display: block;
    }
    .header-logo {
        background-color:white;
    }
    .mobile-logo {
        width: 40%;
        padding-left:1rem;
        margin-top: 1rem;
    }

    header .tci-header-nav {
        display: none;
    }

    .custom-contact-link {
        display: none;
    }

    .main-navigation ul {
        /* display: none; */
        /* Initially hidden */
        flex-direction: column;
        width: 100%;
        /* Full width */
        margin: 0;
        /* Reset margin */
        padding: 0;
        list-style-type: none;
        /* Reset padding */
        /* Additional styles */
    }

    /* // Styles for mobile navigation */
    .main-navigation li {
        color: white;
        font-family: "Work Sans", sans-serif;
        text-decoration: none;
    }

    .main-navigation .nav-menu-item {
        /* // Styles for the top-level menu */
        font-size: 33px;
        font-weight: bold;
        width: 40%;
    }
    a:focus, button:focus, .nav-menu-item:focus {
        outline: none;
        text-decoration: none;
    }
    a:focus, button:focus, .nav-sub-menu-item:focus {
        outline: none;
        text-decoration: none;
    }
    

    .main-navigation .nav-sub-menu-item {
        /* // Styles for each menu item */
        font-size: 18px;
        font-weight: 400;
    }

    .main-navigation li {
        text-decoration: none;
        margin-right: 0;
        width: 100%;
        /* Full width */
        margin: 0;
        /* Reset margin */
        padding: 0;
        /* Reset padding */
        /* Additional styles */

    }

    .main-navigation a {
        text-decoration: none;

    }

    .hamburger-menu {
        display: block;
    }

    #mobile-menu-overlay {
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0, 62, 113, .8);
        backdrop-filter: blur(5px);
        left: 0;
        display: none;
        z-index: 999;
    }


    .site-header {
        flex-direction: column;
    }

    .no-scroll {
        overflow: hidden; /* Prevent scrolling on the body */
        position: fixed; /* Optional: may help on some mobile browsers */
        width: 100%; /* Maintain full width */
    }
    
}