/* Main Menu Container */
.menu-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Spacing between buttons */
    padding: 15px;
    flex-wrap: wrap;
    background: white;
    /* Optional: keep white strip or make transparent */
    border-bottom: 0px solid #ddd;
    position: relative;
    z-index: 50;
}

/* Individual Dropdown Containers */
.student-dropdown {
    position: relative;
    display: inline-block;
}

/* Top Level Links as Buttons */
.student-dropdown>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #f47b20;
    /* Orange Border */
    border-radius: 25px;
    /* Rounded corners */
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hover State for Buttons */
.student-dropdown:hover>a,
.student-dropdown>a:hover {
    background-color: #f47b20;
    color: white;
    box-shadow: 0 4px 8px rgba(244, 123, 32, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Icons inside buttons */
.student-dropdown>a i {
    margin-right: 8px;
    /* handled by 'me-2' class but good backup */
}

/* Dropdown Content (Submenu) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 12px;
    /* Modern rounded corners */
    padding: 10px 0;
    /* Padding inside dropdown */
    top: 100%;
    /* Position below button */
    left: 50%;
    transform: translateX(-50%);
    /* Center dropdown */
    margin-top: 10px;
    /* Space between button and menu */
}

/* Fix for Hover Gap (Bridge) */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Show Dropdown on Hover */
.student-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Dropdown Links */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f3f5;
    color: #f47b20;
    /* Brand Orange on hover */
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}