.posts-category {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.posts-category .news-feed {
    flex: 1;
}

.posts-category .sidebar {
    width: 300px;
}

/* Section titles */
.posts-category .section-title,
.posts-category .sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    position: relative;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.posts-category .section-title::after,
.posts-category .sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #e91e63;
}

/* News articles styles */
.posts-category .featured-news,
.posts-category .news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
}

.posts-category .featured-news {
    position: relative;
    flex-direction: column;
}

.posts-category .featured-news .news-image {
    position: relative;
    height: 500px;
}

.posts-category .news-item .news-image {
    position: relative;
    width: 240px;
    min-width: 240px;
    height: 160px;
    overflow: hidden;
}

.posts-category .news-item .news-image:hover > a > img {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.posts-category .news-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posts-category .news-content {
    padding: 15px;
    flex: 1;
}

.posts-category .featured-news .news-content {
    flex-direction: column;
}

.posts-category .news-content h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    overflow: hidden;
}

.posts-category .featured-news .news-content h3 {
    font-size: 20px;
}

.posts-category .news-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
    overflow: hidden;
}

.posts-category .news-meta {
    display: flex;
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

.posts-category .author {
    color: #e91e63;
    font-weight: 500;
    margin-right: 15px;
}

.posts-category .date {
    color: #999;
}

/* Sidebar styles */
.posts-category .sidebar-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.posts-category .sidebar-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.posts-category .sidebar-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.posts-category .sidebar-image {
    width: 80px;
    height: 60px;
    min-width: 80px;
    margin-right: 15px;
}

.posts-category .sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.posts-category .sidebar-content h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
}

.posts-category .sidebar-ad {
    margin-top: 30px;
}

.posts-category .ad-banner img {
    width: 100%;
    border-radius: 8px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .posts-category {
        flex-direction: column;
    }

    .posts-category .featured-news .news-image {
        height: 300px;
    }

    .posts-category .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .posts-category header, .posts-category {
        flex-direction: column;
        align-items: flex-start;
    }

    .posts-category nav {
        margin-top: 15px;
        width: 100%;
        overflow-x: auto;
    }

    .posts-category nav ul {
        width: max-content;
    }

    .posts-category .news-item {
        flex-direction: column;
    }

    .posts-category .news-item .news-image {
        width: 100%;
        height: 200px;
    }

    .posts-category .featured-news .news-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .posts-category {
        width: 90%;
        margin: 0 auto;
    }

    .posts-category.featured-news .news-image {
        height: 200px;
    }

    .posts-category.news-content h3 {
        font-size: 16px;
    }

    .posts-category.featured-news .news-content h3 {
        font-size: 18px;
    }
}