.mega-menu {
    position: relative;
}

.navbar-nav .nav-item {
    margin-top: 10px; /* Adjusted to prevent overlap */
    margin-left: 30px; /* Adjusted to prevent overlap */
}

.navbar-brand img {
    height: 70px;
    width: 80px; /* Adjusted to prevent overlap height="50" width="70"*/
}
/* Improved Nav Link Appearance */
.nav-text {
    font-size: 16px; /* Keeps the size same */
    font-weight: 900; /* Slightly bold for better visibility */
    color: #002347; /* Darker shade for contrast */
    border-radius: 10px;
    letter-spacing: 0.9px; /* Improves readability */
    text-transform: capitalize; /* Makes it look structured */
}

.nav-text:hover {
    color: #041bf0;
    background-color: #fdc632; /* Darker shade for contrast */
    border-radius: 10px;
}

/* Mega Menu Styling */
.mega-menu .mega-menu-content {
    display: none;
    position: absolute;
    left: 0;
    top: 85%;
    margin-top: 9px;
    width: 970px;
    background: rgb(254, 254, 255);
    padding: 30px;
    border-radius: 10px;
    z-index: 1000;
    max-width: 1000px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.mega-menu h6 {
    font-size: 20px;
    color: #002347;
    margin-bottom: 20px;
}

.mega-menu:hover .mega-menu-content {
    display: block;
}

/* Dropdown Item Styling */
.dropdown-item {
    font-size: 20px;
    font-weight: 9px;
    color: #000953;
    padding: 6px 12px;
}

.dropdown-item:hover {
    background-color: #0015d4;
    color: #f3b60e;
    border-radius: 8px;
}

.dropdown-item span{
    font-size: 26px;
    font-weight: 9px;
    color: #f5cb10;
}
/* Button Styling */
.navbar .btn {
    font-weight: 18px;
    padding: 6px 12px;
}

.btn-primary  {
    background-color: #fdc632;
    color: #002347;
    font-size: 16px;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
    }
    .nav-item {
        margin: 5px 0;
    }
    .mega-menu .mega-menu-content {
        position: static;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
    }
}
