.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-bar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Top Bar Styling */
.top-bar {
    background: rgba(0, 0, 0, 0.02);
    padding: 8px 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.top-bar i {
    margin-right: 8px;
    color: #1e3a8a;
}

.top-bar a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-bar a:hover {
    color: #1e3a8a;
}

/* Navbar Brand */
.navbar-brand {
    font-size: 22px;
    font-weight: 600;
    color: #1e3a8a !important;
    letter-spacing: -0.025em;
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e3a8a;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover::after {
    width: 100%;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7) !important;
    margin: 0 4px;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #1e3a8a !important;
    background: rgba(30, 58, 138, 0.08);
}

.navbar-nav .nav-link.active {
    color: #1e3a8a !important;
    background: rgba(30, 58, 138, 0.1);
}

/* Dropdown Styling - Shadcn Style */
.navbar-nav .dropdown-menu {
    z-index: 1200;
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 6px;
    margin-top: 4px;
    min-width: 200px;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 8px 12px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    margin: 2px 0;
}

.dropdown-item:hover {
    background: rgba(30, 58, 138, 0.08);
    color: #1e3a8a;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 8px;
    background: transparent;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.05);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%231e3a8a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Override Bootstrap's navbar-dark toggler icon */
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%231e3a8a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-nav {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 8px;
        padding: 12px;
        margin-top: 8px;
        box-shadow: 
            0 10px 15px -3px rgba(0, 0, 0, 0.1),
            0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-link {
        color: rgba(0, 0, 0, 0.7) !important;
        margin: 2px 0;
        text-align: left;
        padding: 10px 12px !important;
    }

    .navbar-nav .nav-link:hover {
        color: #1e3a8a !important;
        background: rgba(30, 58, 138, 0.08);
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 6px;
        margin-top: 4px;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
}

.marquee {
    position: static;
    top: auto;
    z-index: 1100;
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    font-weight: bold;
}

.marquee-container {
    width: 100%;
    position: relative;
    overflow: visible;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.marquee a {
    color: #1e3a8a;
    text-decoration: none;
}

.marquee a:hover {
    text-decoration: underline;
}