.widget_vtwnb_popular_posts .widget-title,
.widget_vtwnb_popular_posts .widget-title span,
.widget_vtwnb_popular_posts .is-divider,
.widget_vtwnb_popular_posts h3,
.widget_vtwnb_popular_posts h4 {
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.widget_vtwnb_popular_posts .vtwnb-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget_vtwnb_popular_posts .vtwnb-popular-item {
    display: grid;
    grid-template-columns: 72px minmax(0,1fr);
    gap: 10px;
    align-items: stretch;
    min-height: 72px;
    padding: 9px 0;
    border-bottom: 1px solid #ecefed;
}

.widget_vtwnb_popular_posts .vtwnb-popular-item:first-child { padding-top: 4px; }
.widget_vtwnb_popular_posts .vtwnb-popular-item:last-child { border-bottom: 0; padding-bottom: 0; }
.widget_vtwnb_popular_posts .vtwnb-popular-item.is-no-thumb { grid-template-columns: 1fr; min-height: 0; }

.widget_vtwnb_popular_posts .vtwnb-popular-thumb {
    display: block;
    width: 72px;
    height: 100%;
    min-height: 72px;
    overflow: hidden;
    border-radius: 7px;
    background: #f1f3f2;
}

.widget_vtwnb_popular_posts .vtwnb-popular-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.widget_vtwnb_popular_posts .vtwnb-popular-item:hover .vtwnb-popular-thumb img { transform: scale(1.035); }

.widget_vtwnb_popular_posts .vtwnb-popular-content {
    min-width: 0;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.widget_vtwnb_popular_posts .vtwnb-popular-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #28332d !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.38;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.widget_vtwnb_popular_posts .vtwnb-popular-title:hover { color: #176847 !important; }

.widget_vtwnb_popular_posts .vtwnb-popular-views {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f4f7f5;
    color: #6f7b74;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.widget_vtwnb_popular_posts .vtwnb-popular-eye {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    display: block;
    color: #75837b;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.widget_vtwnb_popular_posts .vtwnb-popular-views strong {
    color: #435149;
    font-size: inherit;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.widget_vtwnb_popular_posts .vtwnb-popular-views span {
    color: #7f8983;
    font-size: inherit;
    font-weight: 500;
}

@media (max-width: 549px) {
    .widget_vtwnb_popular_posts .vtwnb-popular-item {
        grid-template-columns: 68px minmax(0,1fr);
        min-height: 68px;
        gap: 9px;
    }
    .widget_vtwnb_popular_posts .vtwnb-popular-thumb {
        width: 68px;
        min-height: 68px;
    }
    .widget_vtwnb_popular_posts .vtwnb-popular-content { min-height: 68px; }
    .widget_vtwnb_popular_posts .vtwnb-popular-title { font-size: 13.5px; }
    .widget_vtwnb_popular_posts .vtwnb-popular-views { font-size: 10.5px; }
}


/* Adaptive spacing: compact when image/views are disabled. */
.widget_vtwnb_popular_posts .vtwnb-popular-item.is-no-thumb {
    grid-template-columns: 1fr;
    min-height: 0;
}

.widget_vtwnb_popular_posts .vtwnb-popular-item.is-no-thumb .vtwnb-popular-content {
    min-height: 0;
}

.widget_vtwnb_popular_posts .vtwnb-popular-item.is-text-only {
    padding: 7px 0;
}

.widget_vtwnb_popular_posts .vtwnb-popular-item.is-text-only:first-child {
    padding-top: 2px;
}

.widget_vtwnb_popular_posts .vtwnb-popular-item.is-text-only .vtwnb-popular-content {
    display: block;
    min-height: 0;
}

/* Khi tắt lượt xem: ảnh thu về tỷ lệ gọn để cân với 1–2 dòng tiêu đề. */
.widget_vtwnb_popular_posts .vtwnb-popular-item.is-no-views:not(.is-no-thumb) {
    grid-template-columns: 64px minmax(0,1fr);
    align-items: center;
    min-height: 0;
    gap: 10px;
    padding: 8px 0;
}

.widget_vtwnb_popular_posts .vtwnb-popular-item.is-no-views:not(.is-no-thumb) .vtwnb-popular-thumb {
    width: 64px;
    height: 48px;
    min-height: 0;
    aspect-ratio: 4 / 3;
    align-self: center;
}

.widget_vtwnb_popular_posts .vtwnb-popular-item.is-no-views:not(.is-no-thumb) .vtwnb-popular-content {
    min-height: 0;
    display: block;
}

@media (max-width: 549px) {
    .widget_vtwnb_popular_posts .vtwnb-popular-item.is-text-only {
        padding: 6px 0;
    }

    .widget_vtwnb_popular_posts .vtwnb-popular-item.is-no-views:not(.is-no-thumb) {
        grid-template-columns: 60px minmax(0,1fr);
        gap: 9px;
        padding: 7px 0;
    }

    .widget_vtwnb_popular_posts .vtwnb-popular-item.is-no-views:not(.is-no-thumb) .vtwnb-popular-thumb {
        width: 60px;
        height: 45px;
    }
}
