.navbar {
    background: #ffffff !important;
    border: 1px solid #F1F5F9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

/* Navigation */
.nav-link {
    color: #0000FF !important;
    font-weight: 500 !important;
}

.nav-link:hover {
    color: #6B73FF !important;
}

.nav-link .bi-chevron-down {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.dropdown:hover .bi-chevron-down {
    transform: rotate(180deg);
}

/* Mega dropdown */
.mega-dropdown {
    min-width: 600px !important;
    max-width: 800px !important;
    width: auto !important;
    border: 1px solid #E5E7EB !important;
    background-color: rgb(238, 241, 253) !important;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation-fill-mode: both;
}

.mega-dropdown.show {
    transform: translateY(0);
    opacity: 1;
}

/* Category items */
.category-item {
    transition: all 0.15s ease;
    font-size: 14px !important;
    color: #4A5568 !important;
    font-weight: 400;
    display: block;
    padding: 8px 12px 8px 1px;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2px;
    position: relative;
    white-space: nowrap;
}

.category-item::before {
    content: "•";
    position: absolute;
    left: -4px;
    top: 45%;
    transform: translateY(-50%);
    color: #6B73FF;
    font-size: 20px;
    opacity: 0;
    transition: all 0.15s ease;
}

.category-item::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 10px;
    right: 12px;
    height: 1px;
    background-color: #6B73FF;
    opacity: 0;
    transition: all 0.15s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.category-item:hover {
    color: #6B73FF !important;
    transform: translateX(4px);
    padding-left: 24px;
}

.category-item:hover::before {
    opacity: 1;
}

.category-item.active {
    background-color: transparent !important;
    color: #6B73FF !important;
    font-weight: 500;
    transform: translateX(4px);
    padding-left: 24px;
    border-bottom: none;
    border-radius: 4px;
    margin-bottom: 4px;
    padding-bottom: 8px;
}

.category-item.active::before {
    opacity: 1;
    color: #6B73FF;
}

.category-item.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Courses submenu */
.courses-submenu {
    background-color: rgb(238, 241, 253) !important;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.courses-submenu:empty {
    background-color: rgb(238, 241, 253) !important;
}

.course-item {
    transition: all 0.15s ease;
    font-size: 14px;
    color: #4A5568;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 2px;
    display: block;
}

.course-item:hover {
    background-color: #EDF2F7;
    color: #6B73FF;
}

/* Dropdown styling */
.dropdown-menu {
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    background-color: rgb(238, 241, 253) !important;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation-fill-mode: both;
}

.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
}

.dropdown-item {
    transition: all 0.15s ease;
    font-size: 14px !important;
    font-weight: 400;
    position: relative;
    padding: 8px 12px 8px 24px !important;
}

.dropdown-item::before {
    content: "•";
    position: absolute;
    left: 6px;
    top: 45%;
    transform: translateY(-50%);
    color: #6B73FF;
    font-size: 30px; 
    opacity: 0;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background-color: #F7FAFC !important;
    color: #6B73FF !important;
    transform: translateX(4px);
    padding-left: 24px;
}

.dropdown-item:hover::before {
    opacity: 1;
}

/* Buttons */
.btn-secondary {
    border-color: #E2E8F0;
    color: #3979e7;
    background-color: rgb(5, 31, 145, 0.1);
}

.btn-secondary:hover {
    border-color: #E2E8F0;
    color: #3979e7;
    background-color: #F7FAFC;
}

.btn-light {
    border-color: #E2E8F0;
    color: #3979e7;
    background-color: #f7fafc00;
}

.btn-light:hover {
    border-color: #E2E8F0;
    color: #3979e7;
    background-color: #F7FAFC;
}

/* Bootstrap variable overrides */
:root {
    --bs-primary: #6B73FF;
    --bs-primary-rgb: 107, 115, 255;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mega-dropdown {
        min-width: 300px !important;
        max-width: 100% !important;
    }
}

/* Mobile Menu Styles */
.mobile-menu-dropdown {
    position: relative;
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu-dropdown:not(.d-none) {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    transition: all 0.15s ease;
}

.mobile-nav-link:hover {
    background-color: #F8FAFC;
}

.dropdown-arrow {
    font-size: 16px;
    transition: transform 0.15s ease;
    color: #6B73FF;
}

.mobile-nav-item.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-dropdown-content:not(.d-none) {
    max-height: 800px;
    opacity: 1;
}

.mobile-category-item {
    transition: all 0.15s ease;
    font-size: 14px;
}

.mobile-category-item:hover {
    background-color: #F8FAFC;
    color: #6B73FF !important;
}

.mobile-courses-submenu {
    background-color: rgb(250, 252, 255);
    animation: slideDown 0.3s ease;
}

.mobile-course-item {
    transition: all 0.15s ease;
    font-size: 14px;
    color: #4A5568;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 2px;
    display: block;
}

.mobile-course-item:hover {
    background-color: #EDF2F7;
    color: #6B73FF !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 992px) {
    .mobile-menu-dropdown {
        display: none !important;
    }
}