/* Header Base */
.bpt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #090F1B;
    position: relative;
}

.bpt-header .bpt-logo img {
    height: 50px;
}

.bpt-header .bpt-nav-menu {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.bpt-header .bpt-nav-menu li {
    position: relative;
}

/* Navigation Links */
.bpt-header .bpt-nav-menu .bpt-nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 15px 20px;
    transition: all 0.3s ease;
    position: relative;
}

.bpt-header .bpt-nav-menu .bpt-nav-link:hover {
    color: #d6b24e;
    background-color: transparent;
}

/* Mega Menu Container */
.bpt-mega-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #090F1B;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border-top: 3px solid #d6b24e;
}

.bpt-mega-menu-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.bpt-mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

/* Mega Menu Columns */
.bpt-mega-menu-column {
    position: relative;
}

.bpt-mega-menu-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d6b24e;
    transition: color 0.3s ease;
}

.bpt-mega-menu-title:hover {
    color: #d6b24e;
}

/* Submenu Links in Mega Menu */
.bpt-mega-menu-column .bpt-submenu {
    display: block;
    position: static;
    background: transparent;
    box-shadow: none;
    min-width: auto;
    margin-top: 0;
    padding: 0;
}

.bpt-mega-menu-column .bpt-submenu .bpt-submenu-link {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-bottom: none;
}

.bpt-mega-menu-column .bpt-submenu .bpt-submenu-link:hover {
    color: #d6b24e;
    padding-left: 10px;
}

/* Show Mega Menu on Hover */
.bpt-header .bpt-nav-menu .bpt-has-mega-menu:hover .bpt-mega-menu-container {
    display: block;
}

/* Regular dropdown for items without mega menu */
.bpt-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    z-index: 10;
}

.bpt-submenu li a {
    padding: 12px 20px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.bpt-submenu li a:hover {
    color: #fff;
    background-color: #d6b24e;
}

.bpt-header .bpt-nav-menu li:hover>.bpt-submenu {
    display: block;
}

/* Hamburger Menu */
.bpt-hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

/* Menu item wrapper for mobile */
.bpt-menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Mega Menu toggle button */
.bpt-mega-menu-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    display: none;
    transition: color 0.3s ease;
}

.bpt-mega-menu-toggle:hover {
    color: #d6b24e;
}

.bpt-mega-menu-toggle .bpt-dropdown-icon {
    transition: transform 0.3s ease;
}

/* Active state for mobile */
.bpt-active .bpt-dropdown-icon {
    transform: rotate(180deg);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .bpt-hamburger-menu {
        display: block;
    }

    .bpt-main-nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .bpt-main-nav.bpt-active {
        display: flex;
        padding: 20px;
    }

    .bpt-header .bpt-nav-menu {
        flex-direction: column;
        width: 100%;
        margin: 0;
    }

    .bpt-header .bpt-nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .bpt-header .bpt-nav-menu .bpt-nav-link {
        padding: 15px 0;
        text-align: left;
        flex: 1;
    }

    /* Mobile Mega Menu */
    .bpt-mega-menu-toggle {
        display: block;
    }

    .bpt-mega-menu-container {
        position: static;
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
        margin-top: 10px;
        border-radius: 8px;
    }

    .bpt-mega-menu-wrapper {
        padding: 0 20px;
    }

    .bpt-mega-menu-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    .bpt-mega-menu-title {
        color: #d6b24e;
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(214, 178, 78, 0.3);
    }

    .bpt-mega-menu-column .bpt-submenu .bpt-submenu-link {
        color: rgba(255, 255, 255, 0.8);
        padding: 10px 0;
        padding-left: 15px;
    }

    .bpt-mega-menu-column .bpt-submenu .bpt-submenu-link:hover {
        color: #d6b24e;
        padding-left: 25px;
    }

    /* Remove hover effects on mobile */
    .bpt-header .bpt-nav-menu .bpt-has-mega-menu:hover .bpt-mega-menu-container {
        display: none;
    }

    /* Show mega menu when active class is added */
    .bpt-header .bpt-nav-menu .bpt-has-mega-menu.bpt-active .bpt-mega-menu-container {
        display: block;
    }

    /* Hide regular dropdowns on mobile hover */
    .bpt-header .bpt-nav-menu li:hover>.bpt-submenu {
        display: none;
    }
}

/* Desktop Specific */
@media (min-width: 769px) {
    .bpt-hamburger-menu {
        display: none;
    }

    .bpt-mega-menu-toggle {
        display: none;
    }

    /* Ensure mega menu spans full width */
    .bpt-nav-item.bpt-has-mega-menu {
        position: static;
    }

    .bpt-mega-menu-container {
        width: 100vw;
        transform: translateX(-50%);
    }
}

/* Language and CTA Styles */
.bpt-lang.bpt-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bpt-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

/* Animation for smooth mega menu appearance */
.bpt-mega-menu-container {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.bpt-header .bpt-nav-menu .bpt-has-mega-menu:hover .bpt-mega-menu-container {
    opacity: 1;
    transform: translateY(0);
}

/* Focus states for accessibility */
.bpt-nav-link:focus,
.bpt-mega-menu-title:focus,
.bpt-submenu-link:focus {
    outline: 2px solid #d6b24e;
    outline-offset: 2px;
}

/* Submenu Toggle (for regular dropdowns) */
.bpt-submenu-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    display: none;
    transition: color 0.3s ease;
}

.bpt-submenu-toggle:hover {
    color: #d6b24e;
}

.bpt-submenu-toggle .bpt-dropdown-icon {
    transition: transform 0.3s ease;
}

/* Mobile submenu toggle visibility */
@media (max-width: 768px) {
    .bpt-submenu-toggle {
        display: block;
    }

    /* Add active class for clicked submenus */
    .bpt-header .bpt-nav-menu li.bpt-active>.bpt-submenu {
        display: block;
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }

    .bpt-submenu {
        position: relative;
        top: 0;
        left: 0;
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
        box-shadow: none;
        display: none;
    }

    .bpt-submenu li a {
        padding: 10px 20px;
    }
}

/* Desktop submenu positioning */
@media (min-width: 769px) {
    .bpt-submenu-toggle {
        display: block;
    }

    .bpt-depth-1 {
        left: 14rem;
        top: 0;
    }

    .bpt-depth-0 {
        top: 40px;
    }

    .bpt-depth-2 {
        left: 14rem;
        top: 0;
    } }