/* Widget Styles */

.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--nbc-border);
}

.popular-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.popular-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
}

.popular-post-content h4 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.popular-post-content h4 a {
    color: var(--nbc-dark-gray);
}

.popular-post-content h4 a:hover {
    color: var(--nbc-red);
}

.popular-post-date {
    font-size: 12px;
    color: var(--nbc-text-gray);
}

/* Category Widget */
.widget_categories ul {
    list-style: none;
    padding: 0;
}

.widget_categories li {
    padding: 8px 0;
    border-bottom: 1px solid var(--nbc-light-gray);
}

.widget_categories li:last-child {
    border-bottom: none;
}

.widget_categories a {
    display: flex;
    justify-content: space-between;
    color: var(--nbc-dark-gray);
}

.widget_categories a:hover {
    color: var(--nbc-red);
}

/* Recent Posts Widget */
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
}

.widget_recent_entries li {
    padding: 10px 0;
    border-bottom: 1px solid var(--nbc-light-gray);
}

.widget_recent_entries li:last-child {
    border-bottom: none;
}

.widget_recent_entries a {
    color: var(--nbc-dark-gray);
    font-weight: 600;
}

.widget_recent_entries a:hover {
    color: var(--nbc-red);
}

.widget_recent_entries .post-date {
    display: block;
    font-size: 12px;
    color: var(--nbc-text-gray);
    margin-top: 5px;
}

/* Tag Cloud Widget */
.tagcloud a,
.wp-block-tag-cloud a {
    display: inline-block;
    background-color: var(--nbc-gray);
    color: var(--nbc-dark-gray);
    padding: 5px 12px;
    margin: 3px;
    border-radius: 3px;
    font-size: 13px !important;
    transition: all 0.3s ease;
}

.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
    background-color: var(--nbc-red);
    color: var(--nbc-white);
}

/* Search Widget */
.widget_search .search-form {
    margin: 0;
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--nbc-light-gray);
}

.widget_calendar th {
    background-color: var(--nbc-gray);
    font-weight: 600;
}

.widget_calendar td a {
    color: var(--nbc-red);
    font-weight: 600;
}

/* RSS Widget */
.widget_rss ul {
    list-style: none;
    padding: 0;
}

.widget_rss li {
    padding: 10px 0;
    border-bottom: 1px solid var(--nbc-light-gray);
}

.widget_rss li:last-child {
    border-bottom: none;
}

.widget_rss .rsswidget {
    color: var(--nbc-dark-gray);
    font-weight: 600;
}

.widget_rss .rss-date {
    display: block;
    font-size: 12px;
    color: var(--nbc-text-gray);
    margin-top: 5px;
}

.widget_rss .rssSummary {
    margin-top: 5px;
    font-size: 14px;
}
