.topbar {
    background: #f8f9fa;
    color: #133B5C;
    font-size: 13px;
}

.topbar a {
    color: #133B5C;
    text-decoration: none;
}

.topbar a:hover {
    text-decoration: underline;
}

.topbar-links a {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.3);
}
.topbar-links a:first-child,
.topbar-links a:last-child {
  border-right: none !important;
}

.topbar-links a:nth-child(2) {
  padding-left: 0rem !important;
}

.topbar-links a i {
  color: #133B5C;
}

.header-main {
    background: #fff;
}

.header-logo img {
    max-height: 50px;
}

.header-user-menu {
    z-index: 99;
}

.user-menu-btn {
    border: 1px solid #d4dce8;
    border-radius: 999px;
    background: #ffffff;
    color: #133B5C;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
}

.user-menu-btn:hover,
.user-menu-btn:focus,
.user-menu-btn:active {
    color: #133B5C !important;
    background: #f7f9fc !important;
    border-color: #b8c6da !important;
    box-shadow: none !important;
}

.user-menu-btn.dropdown-toggle::after {
    margin-left: 4px;
}

.user-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #c8d4e4;
    background: #133B5C;
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-name {
    max-width: 140px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-menu-dropdown {
    min-width: 210px;
    border: 1px solid #e2e8f2;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(16, 33, 55, 0.12);
    padding-top: 6px;
    padding-bottom: 6px;
}

.user-menu-dropdown .dropdown-item {
    font-size: 14px;
    color: #133B5C;
}

.user-menu-dropdown .dropdown-item:hover {
    background: #f2f6fc;
}

.user-menu-dropdown .dropdown-item.text-danger {
    color: #c62828 !important;
}

.header-search input {
    flex: 1;
    min-width: 250px;
}

.header-search .btn {
    background-color: #133B5C;
    color: #fff;
}

.nav-menu {
    background: #f9f9f9;
}

.nav-menu .nav-link {
    color: #333;
    font-weight: 600;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    background: #133B5C;
    color: #fff !important;
    border-radius: 3px;
}

.nav-menu .menu-item-has-children .dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
}

.nav-menu .menu-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.15);
    padding: 6px 0;
    margin-top: 0;
}

.nav-menu .mega-menu {
    min-width: 620px;
    max-width: 860px;
}

.nav-menu .mega-menu .dropdown-item {
    border-radius: 6px;
    margin-bottom: 2px;
    white-space: normal;
}

.nav-menu .menu-dropdown .dropdown-item {
    font-size: 14px;
    color: #1e293b;
    padding: 8px 14px;
}

.nav-menu .menu-dropdown .dropdown-item:hover {
    background: #eff6ff;
    color: #133B5C;
}

.navbar-toggler {
    border: none;
    background: none;
    color: #133B5C;
    font-size: 1.4rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.nav-menu {
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

@media (max-width: 991px) {
    .header-search {
        width: 100%;
        margin: 10px 0px;
    }

    .header-search input {
        flex: 1;
        min-width: 220px;
    }

    .header-ad{
        margin: auto;
    }

    .nav-menu {
        display: none !important;
    }

    /* Hamburger Icon */
    .mobile-menu {
        display: block;
        background: none;
        border: none;
    }

    /* Mobile Navigation */
    .mobile-nav {
        display: none;
        width: 100%;
        left: 0;
        top: 100%;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-top: 2px solid #0f2e45;
        transition: all 0.3s ease-in-out;
        background: var(--secondary-color);
    }

    .mobile-nav.active {
        display: block;
        animation: fadeSlideDown 0.3s ease;
    }

    @keyframes fadeSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0 0;
        margin: 0;
    }

    .mobile-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mobile-menu-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-nav a {
        color: var(--primary-color);
        display: block;
        padding: 12px 18px;
        font-weight: 500;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.2s;
    }

    .mobile-nav a:hover {
        color: var(--secondary-color);
        background: var(--primary-color);
    }

    .mobile-submenu-toggle {
        border: none;
        background: transparent;
        color: var(--primary-color);
        padding: 0 14px;
        height: 42px;
    }

    .mobile-submenu-toggle.active i {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        background: rgba(19, 59, 92, 0.05);
    }

    .mobile-submenu.active {
        display: block;
    }

    .mobile-submenu li {
        border-bottom: 1px solid rgba(19, 59, 92, 0.12);
    }

    .mobile-submenu a {
        padding: 10px 34px;
        font-size: 13px;
    }

    .user-menu-name {
        max-width: 95px;
    }

    .user-menu-dropdown {
        min-width: 185px;
    }
}
