/* New Sidebar Styles */
.new-sidebar {
    background-color: #1A1A1A;
    color: #fff;
    padding: 20px 15px; /* Added horizontal padding */
}

.sidebar-widget {
    margin-bottom: 30px;
}

.widget-title {
    background-color: #c00;
    color: #fff;
    padding: 10px;
    margin: 0;
    font-size: 18px;
    border-radius: 5px 5px 0 0;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically align items */
}

.widget-title i {
    margin-right: 10px; /* Space between icon and text */
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--main-div-color) !important; /* Red background for Review & News items */
    border-radius: 0 0 5px 5px;
    border: 2px solid var(--popular-posts-border-color) !important; /* Subtle border */
}

.sidebar-widget ul li a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid #444;
    flex-wrap: wrap; /* Allow content to wrap */
}

.sidebar-widget ul li a:hover {
    background-color: #444;
}

.sidebar-widget ul li img {
    margin-right: 10px;
    max-width: 100%; /* Ensure image responsiveness */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
}

.advertisement {
    background-color: var(--main-div-color) !important; /* Red background for Advertisement */
    padding: 10px;
    border-radius: 0 0 5px 5px;
    border: 2px solid var(--popular-posts-border-color) !important; /* Subtle border */
}

.advertisement img {
    max-width: 100%;
}

.popular-posts-tabs {
    display: flex;
    justify-content: space-around;
    background-color: #2d2d2d;
}

.popular-posts-tabs .tab-link {
    background-color: #2d2d2d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.popular-posts-tabs .tab-link.active {
    background-color: #c00;
}

.tab-content {
    background-color: var(--main-div-color) !important; /* Red background for Popular Posts */
    padding: 10px;
    border: 2px solid var(--popular-posts-border-color) !important; /* Blue border */
    border-radius: 0 0 5px 5px;
}

.category-list li a {
    display: block;
    padding: 10px;
    background-color: #2d2d2d;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #444;
}

.category-list li a:hover {
    background-color: #444;
}

/* Responsive adjustments for sidebar */
@media (max-width: 768px) {
    .new-sidebar {
        padding: 10px; /* Adjust padding for smaller screens */
    }

    .sidebar-widget {
        margin-bottom: 20px;
    }

    .popular-posts-tabs {
        flex-direction: column;
    }

    .popular-posts-tabs .tab-link {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Ensure text wraps within sidebar widgets */
.sidebar-widget span,
.sidebar-widget p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.popular-post-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.popular-post-item {
    background-color: var(--main-div-color) !important; /* Red background */
    margin-bottom: 10px; /* Add some spacing */
    border-radius: 5px;
    display: flex;
    align-items: center;
}