/* Left side: Company name */
.navbar-left {
    display: flex;
    align-items: center;
}

.logo {
    width: 70px;
    /* Adjust size as needed */
    height: auto;
    margin-right: 10px;
}

/* Company info container */
.company-info {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

/* Company name styling */
.company-name {
    font-size: 1.4rem;
    /* Large font */
    font-weight: bold;
    color: black;
    text-align: left;
}

.company-name a {
    color: black;
    text-decoration: none;
}

.company-subtitle a {
    color: black;
    text-decoration: none;
}

/* Company subtitle styling */
.company-subtitle {
    font-size: 0.75rem;
    /* Smaller font */
    color: #555;
    margin-top: 0px;
    /* Optional: slight gap between name and subtitle */
    text-align: left;
}

/* Right side: Menu items */
.navbar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-menu {
    display: none;
    /* Hide by default */
}

/* Hamburger Lines */
.menu-icon span {
    display: block;
    width: 100%;
    height: 4px;
    background: black;
    border-radius: 2px;
}

/* Hamburger Menu Icon */
/* Base style: hide the hamburger menu */
.menu-icon {
    display: none;
}




/* Navbar container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Set a fixed height */
    /*background-color: rgba(255, 255, 255, 0.7);*/
    background-color: rgba(255, 255, 255, 1.0);
    color: white;
    z-index: 1000;
    display: flex;
    /* Use flexbox */
    align-items: center;
    /* Center items vertically */
    justify-content: center;
    /* Center items horizontally (or adjust as needed) */
    transition: top 0.3s ease-in-out;
    padding: 0 20px;
    /* Optional: add horizontal padding */
    /*backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);*/
}

.navbar-container {
    /*max-width: 1000px;*/
    /* Maximum width for your navbar content */
    margin: 0 auto;
    /* Center horizontally */
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Navbar list styling */
.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    /* Ensure items in the list are vertically centered */
    margin: 0;
    padding: 0;
}

/* Navbar list items */
.navbar ul li {
    margin: 0 20px;
}

.navbar ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

/* Adjust the dropdown button if needed */
.dropdown-btn {
    /* Ensure the button height matches the navbar height for consistency */
    height: 100%;
    display: flex;
    align-items: center;
}




/* Custom Dropdown Container */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Button */
.dropdown-btn {
    background-color: #33333300;
    color: #fff;
    padding: 10px 15px;
    border: 0px solid #fff;
    border-radius: 0px;
    cursor: pointer;
    font-size: 2rem;
}

/* Dropdown Menu (hidden by default) */
.dropdown-menu {
    /* Force the dropdown menu to always use block layout and stack items vertically */
    display: block !important;
    flex-direction: column;

    position: absolute;
    top: 100%;
    /* positions below the button */
    right: 0%;
    background-color: #ffffff;
    min-width: 10px;
    border: 2px solid #d3d3d3;
    border-radius: 5px;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

/* Menu Items – display vertically */
.dropdown-menu li {
    display: block;
    /* Force each item to be a block element */
    font-size:1.8rem;
    padding: 0px;
    cursor: pointer;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid #555;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

/* Show the menu when open */
.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* Media Query for screens smaller than 768px */
@media (max-width: 980px) {
    .menu-icon {
        width: 30px;
        /* Increased from 35px */
        height: 20px;
        cursor: pointer;
        position: fixed;
        top: 20px;
        right: 10%;
        z-index: 1002;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .custom-dropdown {
        padding-top:3px;
        right: 8%;
        padding-right: 50px;
    }
    .dropdown-menu {
        right: 50px;
    }

    .menu-icon div {
        height: 3px;
        background-color: #333;
        transition: all 0.4s ease;
        transform-origin: center;
    }

    /* Transform the burger icon into an X when active */
    .menu-icon.active .line1 {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-icon.active .line2 {
        opacity: 0;
    }

    .menu-icon.active .line3 {
        transform: rotate(-45deg) translate(6px, -6px);
    }



    .desktop-menu-bar {
        display: none;
        /* Hide the menu items */
    }



    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Use viewport height to cover the entire screen */
        background-color: #f9f9f9;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-out;
        z-index: 1000;
    }

    .navbar-left {
        z-index: 1002;
    }

    /* Menu items */
    /* Menu items without lines between them */
    .mobile-menu a {
        width: 90%;
        text-align: left;
        padding: 15px 30px;
        text-decoration: none;
        color: #333;
        /* Removed border-bottom */
        font-size: 1.4rem;
        padding-left: 20%;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    /* When active, display the menu and fade in each item sequentially */
    .mobile-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu.active a:nth-child(1) {
        transition-delay: 0.05s;
        opacity: 1;
    }

    .mobile-menu.active a:nth-child(2) {
        transition-delay: 0.1s;
        opacity: 1;
    }

    .mobile-menu.active a:nth-child(3) {
        transition-delay: 0.15s;
        opacity: 1;
    }

    .mobile-menu.active a:nth-child(4) {
        transition-delay: 0.2s;
        opacity: 1;
    }

    .mobile-menu.active a:nth-child(5) {
        transition-delay: 0.25s;
        opacity: 1;
    }

    /* Optional: Remove delays when hiding so items fade out simultaneously */
    .mobile-menu:not(.active) a {
        transition-delay: 0s;
    }



}