.list {
    padding: 20px 20px 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 650px;
}

.listContent {
    flex: 1;
    min-height: 550px;
}

.listItem {
    display: block;
    margin-bottom: 30px;
}

.listItemCategories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.listItemCategory {
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--bgSoft);
    color: var(--textSoft);
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.listItemCategory:hover {
    background-color: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

.listItemImage {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.listItemTexts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    width: 100%;
}

.listItemTitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.listItemTitle a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.listItemTitle a:hover {
    color: var(--textSoft);
}

.listItemDesc {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.listItemDetail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.listItemAvatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    margin-top: 40px;
    margin-bottom: 20px;
    justify-content: center;
}

.page-item {
    border: 1px solid;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-item:hover:not(.disabled):not(.active) {
    background-color: var(--bgSoft);
    transform: scale(1.1);
}

.page-item:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.page-item.active {
    background-color: var(--text);
    color: var(--bg);
}

.page-item.disabled {
    background-color: #313845;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .list {
        padding: 0 16px;
    }
    
    .listItem {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .listItemTexts {
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .listItemTitle {
        font-size: 24px;
    }
    
    .listItemDesc {
        font-size: 16px;
    }
    
    .listItemDetail {
        flex-wrap: wrap;
        font-size: 12px;
    }
    
    .pagination {
        margin-top: 60px;
        justify-content: center;
    }
}

/* Categories Page Styles */
.categories-page {
    padding: 20px 20px 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.categories-title {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 600;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.category-tag {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background-color: var(--bgSoft);
    color: var(--textSoft);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background-color: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

.category-tag small {
    opacity: 0.7;
    margin-left: 4px;
}