.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 70px;
    background: #001931;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.main-header .navbar {
    height: 100%;
    /* max-width: 1250px; */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    padding: 0 50px;
}

.navbar .logo a {
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.main-header .navbar .nav-links {
    line-height: 70px;
    height: 100%;
}

.main-header .navbar .links {
    display: flex;
}

.main-header .navbar .links li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 0 14px;
}

.main-header .navbar .links li a {
    height: 100%;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.links li:hover .htmlcss-arrow,
.links li:hover .js-arrow {
    transform: rotate(180deg);
}

.main-header .navbar .links li .arrow {
    height: 100%;
    width: 22px;
    line-height: 70px;
    text-align: center;
    display: inline-block;
    color: #fff;
    transition: all 0.3s ease;
}

.main-header .navbar .links li .sub-menu {
    position: absolute;
    top: 70px;
    left: 0;
    line-height: 40px;
    background: #001931;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 4px 4px;
    /* display: none; */
    z-index: 2;
}

.main-header .navbar .links li:hover .htmlCss-sub-menu{
    display: block;
}

.navbar .links li .sub-menu li {
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .links li .sub-menu a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.navbar .links li .sub-menu .more-arrow {
    line-height: 40px;
}

.navbar .links li .htmlCss-more-sub-menu {
    /* line-height: 40px; */
}

.navbar .links li .sub-menu .more-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    border-radius: 0 4px 4px 4px;
    z-index: 1;
    display: none;
}

.links li .sub-menu .more:hover .more-sub-menu {
    display: block;
}

.navbar .search-box {
    position: relative;
    height: 40px;
    width: 40px;
    display: none;
}

.navbar .search-box i {
    position: absolute;
    height: 100%;
    width: 100%;
    line-height: 40px;
    text-align: center;
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar .search-box .input-box {
    position: absolute;
    right: calc(100% - 40px);
    top: 80px;
    height: 60px;
    width: 300px;
    background: #001931;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.navbar.showInput .search-box .input-box {
    top: 65px;
    opacity: 1;
    pointer-events: auto;
    background: #001931;
}

.search-box .input-box::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    background: #001931;
    right: 10px;
    top: -6px;
    transform: rotate(45deg);
}

.search-box .input-box input {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    height: 35px;
    width: 280px;
    outline: none;
    padding: 0 15px;
    font-size: 16px;
    border: none;
}

.navbar .nav-links .sidebar-logo {
    display: none;
}

.navbar .bx-menu {
    display: none;
}

@media (max-width:920px) {
    .main-header .navbar {
        max-width: 100%;
        padding: 0 25px;
    }

    .main-header .navbar .logo a {
        font-size: 27px;
    }

    .main-header .navbar .links li {
        padding: 0 10px;
        white-space: nowrap;
    }

    .main-header .navbar .links li a {
        font-size: 15px;
    }
}

@media (max-width:800px) {
    .main-header {
        /* position: relative; */
    }

    .navbar .bx-menu {
        display: block;
    }

    .main-header .navbar .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        display: block;
        max-width: 270px;
        width: 100%;
        background: #001931;
        line-height: 40px;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.5s ease;
        z-index: 1000;
    }

    .navbar .nav-links .sidebar-logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar .logo img {
        width: 90px;
    }

    .sidebar-logo .logo-name {
        font-size: 25px;
        color: #fff;
    }

    .sidebar-logo i,
    .navbar .bx-menu {
        font-size: 25px;
        color: #fff;
    }

    .main-header .navbar .links {
        display: block;
        margin-top: 20px;
    }

    .main-header .navbar .links li .arrow {
        line-height: 40px;
    }

    .main-header .navbar .links li {
        display: block;
    }

    .main-header .navbar .links li .sub-menu {
        position: relative;
        top: 0;
        box-shadow: none;
        /* display: none; */
    }

    .main-header .navbar .links li .sub-menu li {
        border-bottom: none;

    }

    .navbar .links li .sub-menu .more-sub-menu {
        display: none;
        position: relative;
        left: 0;
    }

    .navbar .links li .sub-menu .more-sub-menu li {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .links li:hover .htmlcss-arrow,
    .links li:hover .js-arrow {
        transform: rotate(0deg);
    }

    .navbar .links li .sub-menu .more-sub-menu {
        display: none;
    }

    .navbar .links li .sub-menu .more span {
        display: flex;
        align-items: center;
    }

    .links li .sub-menu .more:hover .more-sub-menu {
        display: none;
    }

    .main-header .navbar .links li:hover .htmlCss-sub-menu,
    .main-header .navbar .links li:hover .js-sub-menu {
        display: none;
    }

    .navbar .nav-links.show1 .links .htmlCss-sub-menu,
    .navbar .nav-links.show3 .links .js-sub-menu,
    .navbar .nav-links.show2 .links .more .more-sub-menu {
        display: block;
    }

    .navbar .nav-links.show1 .links .htmlcss-arrow,
    .navbar .nav-links.show3 .links .js-arrow {
        transform: rotate(180deg);
    }

    .navbar .nav-links.show2 .links .more-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width:370px) {
    .main-header .navbar .nav-links {
        max-width: 100%;
    }
}

.menu-block{
    position: relative;
display: inline-block;
}
.profiledropdown {
position: relative;
display: inline-block;
}

.profiledropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 250px;
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1;
right: 0;
padding: 15px;
margin-top: 0px;
border-radius: 10px;
}
.profiledropdown-content a:hover {
background-color: #f1f1f1;
color: #000 !important;
}

.profiledropdown:hover .profiledropdown-content {
display: block;
}
.creditbtn{
border-radius: 8px;
border: 1px solid var(--white, #FFF);
background: transparent;
color: #fff;
padding: 7px 10px;
}
.afterloginbtn{
background: #dcdcdc;
border-radius: 30px;
width: 50px;
height: 50px;
display: block;
display: flex;
align-items: center;
justify-content: center;
}
.profiledropdown-content .profiletopsec{
display: flex;
align-items: center;
gap: 1em;
border-bottom: 1px solid #ccc;
margin-bottom: 10px;
padding: 0px 0px 16px;
}
.profiledropdown-content .profiletopsec h3{
font-size: 16px;
}
.settingbtn{
background: transparent;
border: none !important;
color: #000 !important;
padding: 10px !important;
width: 100% !important;
}
.settingbtn i{
margin-right: 10px;
}

/* Submenu open/close animation */
.sub-menu {
display: none;
transition: max-height 0.3s ease-in-out;
max-height: 0;
overflow: hidden;
}

.sub-menu.open {
display: block;
max-height: 500px; /* Adjust this as needed */
}

/* Optional: Rotate arrow when submenu is open */
.arrow.rotated {
transform: rotate(180deg);
}

.first-letter {
display: inline-block;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #007bff;
color: white;
text-align: center;
line-height: 30px;
font-weight: bold;
}
.secondletter{
display: inline-block;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #007bff;
color: white;
text-align: center;
line-height: 30px;
font-weight: bold;
}



