/* Enhanced Menu Styles for Both Regular and Mega Menu */
.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li {
    position: relative;
    display: inline-block;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li > a,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li > a {
    padding: 20px 25px;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    color: #1A2B48;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li:hover > a,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li.active > a,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li:hover > a,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li.active > a {
    color: #5191FA;
}

/* Add underline effect for active/hover states */
.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li > a:after,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li > a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #5191FA;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li:hover > a:after,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li.active > a:after,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li:hover > a:after,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li.active > a:after {
    width: 100%;
}

/* Mega Menu Container */
.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .has-mega-menu,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .has-mega-menu {
    position: relative;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .mega-menu,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .mega-menu {
    position: absolute;
    top: 100%;
    left: -200px; /* Adjusted to center the mega menu */
    width: 900px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #5191FA;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 9999;
    border-radius: 0 0 12px 12px;
}

/* Regular Dropdown Menu Styles */
.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .children-menu,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .children-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #5191FA;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled li:hover > .children-menu,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated li:hover > .children-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .children-menu li,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .children-menu li {
    display: block;
    width: 100%;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .children-menu li a,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .children-menu li a {
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    color: #1A2B48;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: none;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .children-menu li:hover a,
.bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .children-menu li:hover a {
    color: #5191FA;
    background-color: #f8f9fa;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .main-menu .has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Content */
.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-content {
    display: flex;
    padding: 25px;
    gap: 40px;
    align-items: flex-start;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-column {
    flex: 1;
    min-width: 0;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1A2B48;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #5191FA;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-column ul li {
    margin-bottom: 8px;
    width: 100%;
    display: block;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-column ul li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 6px 0;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    padding-left: 0;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-column ul li a:hover {
    color: #5191FA;
    padding-left: 8px;
    background-color: rgba(81, 145, 250, 0.05);
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-column ul li a:before {
    content: "→";
    position: absolute;
    left: -12px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #5191FA;
    font-size: 12px;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-column ul li a:hover:before {
    opacity: 1;
    left: -8px;
}

/* Quick Pay Button */
.bravo_wrap .bravo_header .content .header-right .quick-pay-btn {
    background: #5191FA;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-left: 15px;
    transition: all 0.3s;
    display: inline-block;
}

.bravo_wrap .bravo_header .content .header-right .quick-pay-btn:hover {
    background: #4180e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 145, 250, 0.3);
}

/* Quick Pay Button */
.bravo_wrap .bravo_header .content .header-right .quick-pay-btn {
    background: linear-gradient(45deg, #5191FA, #4180e6);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-left: 15px;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    box-shadow: 0 2px 10px rgba(81, 145, 250, 0.3);
}

.bravo_wrap .bravo_header .content .header-right .quick-pay-btn i {
    margin-right: 5px;
}

.bravo_wrap .bravo_header .content .header-right .quick-pay-btn:hover {
    background: linear-gradient(45deg, #4180e6, #3a73d9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 145, 250, 0.4);
    color: white;
    text-decoration: none;
}

/* Quick Pay Button in Topbar */
.quick-pay-topbar-btn {
    color: #28a745 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    display: inline-block;
    margin-left: 15px;
}

.quick-pay-topbar-btn:hover {
    color: #fff !important;
    background: #28a745;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.quick-pay-topbar-btn i {
    margin-right: 4px;
}

.quickpay-item {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 1366px) {
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li > a,
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li > a {
        padding: 15px 20px;
    }
    
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .mega-menu,
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .mega-menu {
        width: 900px;
        left: -200px;
    }
}

@media (max-width: 1024px) {
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li > a,
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li > a {
        padding: 15px 15px;
    }
    
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .mega-menu,
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .mega-menu {
        width: 800px;
        left: -150px;
    }
}

@media (max-width: 768px) {
    .bravo_wrap .bravo_header .content .header-left .bravo-menu {
        display: none;
    }
    
    .bravo_wrap .bravo_header .content .header-right .quick-pay-btn {
        display: none;
    }
}

/* Animation for dropdown arrow */
.bravo_wrap .bravo_header .content .header-left .bravo-menu .main-menu .has-mega-menu > a i {
    transition: transform 0.3s;
}

.bravo_wrap .bravo_header .content .header-left .bravo-menu .main-menu .has-mega-menu:hover > a i {
    transform: rotate(180deg);
}

/* Ensure mega menu doesn't get cut off */
.bravo_wrap .bravo_header {
    position: relative;
    z-index: 1000;
}

/* Mobile menu enhancements for mega menu items */
.bravo_wrap .bravo_header .bravo-menu-mobile .g-menu .mega-menu-mobile {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
}

.bravo_wrap .bravo_header .bravo-menu-mobile .g-menu .mega-menu-mobile h5 {
    color: #5191FA;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bravo_wrap .bravo_header .bravo-menu-mobile .g-menu .mega-menu-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bravo_wrap .bravo_header .bravo-menu-mobile .g-menu .mega-menu-mobile ul li {
    margin-bottom: 5px;
}

.bravo_wrap .bravo_header .bravo-menu-mobile .g-menu .mega-menu-mobile ul li a {
    color: #666;
    font-size: 13px;
    padding: 3px 0;
    text-transform: none;
    font-weight: 400;
}

/* Responsive Mega Menu */
@media (max-width: 1200px) {
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .mega-menu,
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .mega-menu {
        width: 800px;
        left: -200px;
    }
    
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-content {
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .mega-menu,
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .mega-menu {
        width: 600px;
        left: -150px;
    }
    
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-content {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }
    
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-column {
        flex-basis: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    /* Hide mega menu on mobile and use mobile menu instead */
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled .mega-menu,
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated .mega-menu {
        display: none;
    }
}

/* Additional responsive handling for menu wrapping */
@media (max-width: 1200px) {
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li > a,
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li > a {
        padding: 15px 12px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .mega-menu-enabled > li > a,
    .bravo_wrap .bravo_header .content .header-left .bravo-menu .menu-generated > li > a {
        padding: 12px 10px;
        font-size: 13px;
    }
}
