.trending-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    border-bottom: 1px solid #00000017;
    padding-bottom: 5px;
    background-color: #fff; /* Change this if you need a different background color */
    position: relative;
}

.trending-content {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.trending-label {
    flex-shrink: 0;
    font-weight: bold;
    white-space: nowrap;
    margin: 0 10px 0 10px; /* Adjust space between label and menu */
}

.trending-scroll {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-articles-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.trending-articles-menu li {
    display: inline-block;
    list-style: none;
    margin: 0 10px; /* Adjust spacing as needed */
}

.trending-articles-menu a {
    text-decoration: underline;
    color: #333;
    font-weight: normal;
}

.trending-articles-menu a:hover {
    color: #000;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .trending-container {
        justify-content: flex-start; /* Align to the start on mobile */
    }

    .trending-content {
        flex-grow: 1;
    }

    .trending-scroll {
        justify-content: flex-start; /* Align to the start on mobile */
        padding-left: 0; /* Remove extra padding on mobile */
    }

    .trending-label {
        margin-right: 10px; /* Remove extra margin on mobile */
    }
}

/* Custom scrollbar styles */
.trending-scroll::-webkit-scrollbar {
    height: 5px;
}

.trending-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.trending-scroll::-webkit-scrollbar-thumb {
    background-color: #2a4238;
    border-radius: 10px;
    border: 4px solid #f1f1f1;
}

.trending-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #2a4238;
}
