.ui-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    max-height: 300px; 
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
}

/* Custom scrollbar styling for Webkit browsers (Chrome, Safari) */
.ui-menu::-webkit-scrollbar {
    width: 12px;
}

.ui-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.ui-menu::-webkit-scrollbar-thumb {
    background-color: #888; /* Color of the thumb */
    border-radius: 10px; /* Roundness of the thumb */
    border: 3px solid #f1f1f1; /* Space around thumb */
}

.ui-menu::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.ui-menu-item {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.ui-menu-item:last-child {
    border-bottom: none;
}

.ui-menu-item:hover {
    background-color: #f5f5f5;
}

.ui-menu-icon {
    margin-right: 12px;
    color: #007bff;
}

.ui-menu-item-wrapper {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #2d99d9;
}

.ui-menu-item-text {
    margin-left: 8px;
}

/* Custom scrollbar styling for Firefox */
.ui-menu {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Custom scrollbar styling for other browsers */
.ui-menu::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.ui-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ui-menu::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

.ui-menu::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}



.imgboyutpopuler {



    height: 420px !important;



}



.imgpopuler{



    height: 382px !important;



}

.imgpopuler1{



    height: 300px !important;



}

/* Media queries for responsive design */
@media only screen and (max-width: 600px) {
    .imgboyutpopuler {
        height: auto !important;
    }

    .nav-holder {
        position: relative;
    }

    .menu-toggle {
        display: none;
    }

    .menu-icon {
        display: block;
        padding: 11px 20px;
        color: white;
        background-color: #2d99d9;
        text-align: center;
        font-size: 18px;
        cursor: pointer;
        margin-top: 18px;
        width: 57px;
    }

    nav {
        background-color: #2d99d9;
        overflow: hidden;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    nav ul li {
        display: block;
    }

    nav ul li a {
        display: block;
        color: white;
        text-align: left;
        padding: 14px 20px;
        text-decoration: none;
    }

    nav ul li a:hover {
        background-color: #575757;
    }

    .child-nav, .third-level {
        display: none;
        padding: 0;
        margin: 0;
        list-style: none;
        background-color: #2d99d9;
        overflow-y: auto; /* Enable vertical scrolling */
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .child-nav.show, .third-level.show {
        display: block;
    }

    .child-nav.show {
        max-height: 300px; /* Adjust based on content */
    }

    .third-level.show {
        max-height: 300px; /* Adjust based on content */
    }

    .child-nav li a, .third-level li a {
        padding-left: 40px;
        padding: 10px 15px;
        color: white;
        text-decoration: none;
    }

    .child-nav li a:hover, .third-level li a:hover {
        background-color: #575757;
    }

    .fas.fa-caret-down {
        float: right;
        padding-right: 10px;
    }
}

@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
        margin-top: 1px;
        margin-left: -26px;

    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav ul.show {
        display: flex;
        flex-direction: column;
    }
}
