.widget_featured_posts_by_primary_category_widget ul {
    list-style: none;
    padding: 0;
}

.widget_featured_posts_by_primary_category_widget ul li {
    margin-bottom: 10px;
}

.widget_featured_posts_by_primary_category_widget ul li a {
    text-decoration: none;
    color: #000;
}

.widget_featured_posts_by_primary_category_widget ul li .thumbnail-left {
    display: flex;
    align-items: center;
	margin:5px 0px;
}

.widget_featured_posts_by_primary_category_widget ul li .thumbnail-left a img {
    max-width: 100px;
    margin-right: 10px;
}

.widget_featured_posts_by_primary_category_widget ul li .thumbnail-above {
    display: block;
    text-align: center;
	margin-top:5px;
}

.widget_featured_posts_by_primary_category_widget ul li .thumbnail-above a img {
    max-width: 100%; /* Kích thước thumbnail */
    display: block;
    margin: 0 auto 5px auto; /* Khoảng cách dưới thumbnail */
}

/* Widget bài viết khác chuyên mục */
.widget_posts_from_same_category_widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_posts_from_same_category_widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.widget_posts_from_same_category_widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget_posts_from_same_category_widget ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.widget_posts_from_same_category_widget ul li a:hover {
    color: #007bff;
}

.widget_posts_from_same_category_widget .post-date {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Shortcode featured posts style */
.kt-post-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kt-post-list li {
    flex: 1;
    min-width: 250px;
    margin: 0;
}

.kt-post-list li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.kt-post-list li a:hover {
    color: #007bff;
}

.kt-post-list .thumbnail-above {
    margin-bottom: 10px;
}

.kt-post-list .thumbnail-above img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.kt-post-list .thumbnail-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kt-post-list .thumbnail-left img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

.widget_posts_from_same_category_widget {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget_posts_from_same_category_widget .widget-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    color: #333;
    font-weight: 600;
}

.widget_posts_from_same_category_widget ul li {
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.widget_posts_from_same_category_widget ul li:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.widget_posts_from_same_category_widget .post-thumbnail {
    flex: 0 0 70px;
}

.widget_posts_from_same_category_widget .post-thumbnail img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.widget_posts_from_same_category_widget .post-thumbnail img:hover {
    transform: scale(1.05);
}

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

.widget_posts_from_same_category_widget .post-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #2d2d2d;
    line-height: 1.4;
}

.widget_posts_from_same_category_widget .post-date {
    font-size: 12px;
    color: #777;
}

.kt-grid-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.kt-grid-post {
    text-align: center;
    margin: 0;
}

.kt-grid-post a {
    text-decoration: none;
    color: #333;
    display: block;
}

.kt-grid-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.kt-grid-post-title {
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.4;
    color: #333;
}

@media (max-width: 768px) {
    .kt-grid-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .kt-grid-posts {
        grid-template-columns: 1fr;
    }
}
