/* Navbar Styling */
.sci-navbar {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-dark) 100%);
    padding: 1rem 0;
    box-shadow: 0 8px 24px rgba(31, 109, 58, 0.2);
    position: relative;
}

.sci-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: white !important;
}

.navbar-brand:hover {
    transform: translateY(-3px);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.navbar-brand:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.navbar-nav .nav-link {
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.4rem !important;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-green));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    border-radius: 3px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    width: calc(100% - 2.8rem);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link[style*="color: #1572e8"] {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-nav .nav-link.active::before,
.navbar-nav .nav-link[style*="color: #1572e8"]::before {
    width: calc(100% - 2.8rem);
    background: linear-gradient(90deg, var(--brand-gold), #2ecc71);
}

.navbar-nav .btn-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.4rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
    color: var(--brand-green) !important;
    text-transform: uppercase;
    display: inline-block !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 0.5rem;
    pointer-events: auto !important;
    z-index: 10;
}

.navbar-nav .btn-light::before {
    display: none !important;
}

.navbar-nav .btn-light:hover {
    background: white;
    border-color: white;
    color: var(--brand-green) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 109, 58, 0.2);
}

.navbar-toggler {
    padding: 0.5rem 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    outline: none;
}

.navbar-toggler span {
    color: white !important;
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .sci-navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar-nav {
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem 0 !important;
        margin: 0.3rem 0 !important;
        font-size: 0.95rem;
    }

    .navbar-nav .nav-link::before {
        display: none;
    }

    .navbar-nav .nav-link:hover {
        padding-left: 1rem !important;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .btn-light {
        padding: 0.6rem 1.2rem !important;
        margin: 0.5rem 0 !important;
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link[style*="color: #1572e8"] {
        padding-left: 1rem !important;
        background-color: rgba(255, 255, 255, 0.15);
        border-left: 3px solid var(--brand-gold);
    }
}

@media (max-width: 576px) {
    .sci-navbar {
        padding: 0.6rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }

    .navbar-brand img {
        height: 35px;
        margin-right: 0.5rem !important;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.7rem 0 !important;
    }

    .navbar-nav .btn-light {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem !important;
    }
}

/* Temporary fix: ensure navbar is above any fullscreen overlays and is clickable */
.sci-navbar {
    z-index: 2000; /* above typical modal/backdrop z-index */
}
.sci-navbar, .sci-navbar * {
    pointer-events: auto !important;
}
