#masthead .navbar.bg-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fixed Branding Area (Left) */
#masthead .site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#masthead .site-branding .custom-logo-link img {
    width: 120px !important;
    height: 50px !important;
    margin-right: 8px;
    object-fit: contain;
}

#masthead .site-branding-text {
    display: flex;
    flex-direction: column;
    margin-right: 8px;
    justify-content: center;
}

#masthead .site-title.h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    line-height: 1.2;
}

#masthead .site-title.h3 a {
    color: #f8fafc !important;
    text-decoration: none;
    padding: 0;
}

#masthead .site-description {
    color: #94a3b8;
    font-size: 0.8rem !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    line-height: 1;
}

/* Fixed Dropdown Menu (Right) */
#masthead .navbar-collapse {
    flex-grow: 0;
}

#masthead .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    /* Decreased spacing between menus */
}

#masthead .navbar-nav>li>.nav-link {
    color: #e2e8f0 !important;
    font-weight: 600;
    padding: 0.35rem 0.6rem !important;
    font-size: 0.9rem !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#masthead .navbar-nav>li>.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu styling */
#masthead .navbar-nav .dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: #ffffff !important;
    padding: 0.4rem 0;
    margin-top: 0.25rem;
}

#masthead .navbar-nav .dropdown-menu a {
    padding: 0.4rem 1.2rem;
    color: #334155 !important;
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
}

#masthead .navbar-nav .dropdown-menu a:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    text-decoration: none;
}

/* Secondary Bar */
#masthead .vt-bar {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.6rem 0;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

#masthead .vt-bar .form-inline.vt-bar-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
    gap: 0;
}

#masthead .vt-bar .vt-bar-column {
    flex: 1;
    display: flex;
    align-items: center;
}

#masthead .vt-bar .vt-bar-column.left {
    justify-content: flex-end;
    padding-right: 0.5rem;
}

#masthead .vt-bar .vt-bar-column.right {
    justify-content: flex-start;
    padding-left: 0.5rem;
}

#masthead .vt-bar select {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.3rem 2rem 0.3rem 0.6rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.4rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    min-width: 180px;
}

#masthead .vt-bar button#selectProgram:disabled,
#masthead .vt-bar button#selectProgram.btn-outline-danger {
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    margin-bottom: 0 !important;
    opacity: 1 !important;
    cursor: default;
    white-space: nowrap;
}

#masthead .vt-bar button#selectProgram b {
    color: #047857;
    font-weight: 700;
}

body,
.site-content,
#page,
.content-area {
    background-color: #f8fafc !important;
    color: #334155;
}