.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 10000; /* ensures it stays above other content */
    background: linear-gradient(30deg, #f5c127, #fff);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: block;
}
.nav-container {
    max-width: 1536px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}
.logo-container {
    flex: 1 1 372px;
    display: flex;
    flex-shrink: 0;
    max-width: 372px; 
    width: 100%; 
    justify-content: center; 
    align-content: center;
}
.logo {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}
.mobile-nav {
    display: none; /* default */
    background: linear-gradient(to top, white, #f5c127);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.mobile-nav-container {
    display: flex;
    flex-direction: row;
    max-width: 768px;
    width: 100%;
    padding: .5rem 0;
}
.mobile-logo {
    max-width: 75px;
    height: auto;
    object-fit: contain;
    margin: 0;   
}
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom, white, #fffceb);
}
.mobile-menu a {
    text-decoration: none;
    color: #224676;
}
.mobile-menu-item {
    font-weight: 400;
    font-family: 'Maven Pro', sans-serif;
    padding-left: 1.5rem;

}
/* show menu when toggled */
.mobile-nav.open .mobile-menu {
    display: flex;
}
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001; /* ensure it is clickable */
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
}
.nav-center {
    flex: 1 1 792px;
    max-width: 792px;
    flex-shrink: 0;
}
.container-flex-menu {
    display: flex;
    align-items: center;
}

.menu-main {
    display: flex;
    align-items: baseline;
    max-width: 792px;
    width: 100%;
    align-content: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
}
.main-menu a {
    text-decoration: none;
    padding: .5rem;
    display: block;
    color: #333;
}
.menu-main li {
    position: relative;
    cursor: pointer;
    font-family: 'Maven Pro';
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: #000a44;
    text-transform: capitalize;
}
    .menu-main li a {
        text-transform: capitalize;
    }

        .menu-main li a::first-letter {
            text-transform: uppercase;
        }
.menu-main li {
    text-transform: capitalize;
}

        .menu-main li::first-letter {
            text-transform: uppercase;
        }
.has-dropdown {
    position: relative;
}
/* Dropdown Styling */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(-30deg, #f5c127, #fffceb);
    border-top-left-radius: 0;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: .5rem;
    border-bottom-left-radius: .5rem;
    list-style: none;
    padding: 1rem;
    min-width: 130px;
    z-index: 9999;
    flex-direction: column;
    
}
/* Dropdown Item Styling */
.dropdown li {
    padding: .5rem;
    color: #000a44;
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.3s ease;
}
.dropdown li:hover {
    background: rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: .5rem;
}
.menu-main li:hover > .dropdown {
    display: flex;
}
/* Submenu Styling */
.dropdown .submenu {
    position: absolute;
    top: 0;
    left: calc(100% + 7px);
    background: linear-gradient(-30deg, #f5c127, #fffceb);
    border-top-left-radius: 0;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: .5rem;
    border-bottom-left-radius: .5rem;
    list-style: none;
    padding: 0 1rem 1rem 0;
    min-width: 160px;
    max-height: 75vh;
    overflow-y: auto;
    display: none;
}
.dropdown li.has-submenu:hover > .submenu {
    display: flex;
}
.french-family {
    display: flex;
    flex-shrink: 0;
    justify-content: center; 
    align-items: center;
    max-width: 372px;
    width: 100%;
    flex: 1 1 372px;
    flex-wrap: wrap;
    gap: 1rem;
}
.french-family a {
    font-family: 'Maven Pro'; 
    font-weight: 500;
    font-size: 1rem; 
    text-decoration: none; 
    color: inherit;
}
/* The Search Box */
.search-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#search-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}
/* The search overlay box */
.search-overlay {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 810px;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    display: flex;
    justify-content: center;
}
#search-box {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #f5c127;
    border-radius: 8px;
}
/* Show class */
.search-overlay.show {
    opacity: 1;
    visibility: visible;
}
#liveLink {
    color: #c40000;    
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none; 
}
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 1rem;
    }
    .navbar {
        display: none;
    }
    body {
        padding-top: 1rem;
    }
}