/* Navbar Styles */
.navbar {
    background-color: rgba(1, 6, 28, 0.95);
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    order: 0;
    /* Logo stays leftmost */
    flex-shrink: 0;
}

.nav-brand img {
    height: 90px;
    /* Adjust height as needed */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    /* Grow to fill space between Courses and Student Login */
    justify-content: center;
    /* Center the menu links */
    order: 2;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    /* Increased from 0.95rem */
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-cta {
    background-color: var(--color-primary);
    color: var(--color-text);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.nav-cta:hover {
    background-color: #ff6b61;
    color: white;
}

/* Courses button — identical style to Student Login CTA */
.nav-courses {
    padding: 0.5rem 1.5rem !important;
    margin-left: 0.8rem;
    /* Tight gap right after logo */
    order: 1;
    /* Immediately after logo (order:0), before nav-menu (order:2) */
    white-space: nowrap;
    flex-shrink: 0;
}



/* Ensure Student Login stays rightmost */
.nav-cta:not(.nav-courses) {
    order: 3;
    flex-shrink: 0;
}