.post-topic-zone {
    padding-top: 10px;
    padding-bottom: 8px;
}

.post-topic-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.post-topic-title {
    margin: 0 0 12px;
    color: #1D2939;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.post-topic-card {
    background: #f2f4f7;
    border: 1px solid #e3e8ef;
    border-radius: 4px;
    padding: 0 0 10px;
    height: 100%;
}

.post-topic-thumb,
.post-topic-thumb-link {
    display: block;
    width: 100%;
    aspect-ratio: 590 / 280;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
}

.post-topic-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-topic-grid {
    --bs-gutter-y: 2rem;
}

.post-topic-name {
    display: block;
    margin-top: 10px;
    padding: 0 12px;
    color: #1D2939;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none;
}

.post-topic-name:hover {
    color: #f35b04;
}

.post-topic-time {
    margin-top: 8px;
    padding: 0 12px;
    color: #465263;
    font-size: 12px;
    line-height: 1.3;
}

.post-topic-empty {
    background: #f8fafc;
    border: 1px dashed #cfd8e3;
    border-radius: 8px;
    color: #1D2939;
    padding: 24px 12px;
    text-align: center;
    font-size: 14px;
}

.post-topic-pagination {
    margin-top: 22px;
}

.post-topic-pagination .pagination {
    justify-content: center;
    margin-bottom: 0;
    gap: 8px;
}

.post-topic-pagination .page-item {
    margin: 0;
}

.post-topic-pagination .page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d8e0ea;
    background: #fff;
    color: #1D2939;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
}

.post-topic-pagination .page-link:hover {
    border-color: #f35b04;
    color: #f35b04;
    background: #fff3e9;
}

.post-topic-pagination .page-item.active .page-link {
    border-color: #f35b04;
    background: linear-gradient(135deg, #f35b04 0%, #ff8a3a 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(243, 91, 4, 0.25);
}

.post-topic-pagination .page-item.disabled .page-link {
    color: #9aa6b2;
    border-color: #e7edf3;
    background: #f8fafc;
}

.post-sub-category-zone {
    padding-top: 10px;
    padding-bottom: 16px;
}

.post-sub-category-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
}

.post-sub-category-title {
    margin-bottom: 14px;
}

.post-sub-category-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.post-sub-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 10px;
    padding: 14px 14px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    min-height: 128px;
    grid-column: span 2;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #f35b04;
    background-position: center center !important;
    background-repeat: no-repeat;
    background-size: cover;
}

.post-sub-category-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(51, 51, 51, 1) 9%, rgba(51, 51, 51, 0) 99.08%);
}

.post-sub-category-item:nth-child(-n + 2) {
    grid-column: span 3;
    min-height: 142px;
}

.post-sub-category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
    color: #fff;
}

.post-sub-category-content,
.post-sub-category-arrow {
    position: relative;
    z-index: 1;
}

.post-sub-category-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.post-sub-category-name {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    word-break: break-word;
}

.post-sub-category-count {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1.3;
}

.post-sub-category-arrow {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
}

.post-sub-category-arrow i {
    font-size: 18px;
    line-height: 1;
}

.post-sub-category-item-theme-1 {
    background: linear-gradient(135deg, #c72814 0%, #f35b04 100%);
}

.post-sub-category-item-theme-2 {
    background: linear-gradient(135deg, #f35b04 0%, #ff9a3c 100%);
}

.post-sub-category-item-theme-3 {
    background: linear-gradient(135deg, #f35b04 0%, #f2a14c 100%);
}

.post-sub-category-item-theme-4 {
    background: linear-gradient(135deg, #d94116 0%, #f35b04 100%);
}

.post-sub-category-item-theme-5 {
    background: linear-gradient(135deg, #f08728 0%, #f9b257 100%);
}

.post-sub-category-item-theme-6 {
    background: linear-gradient(135deg, #ea5520 0%, #ff8b42 100%);
}

@media (max-width: 768px) {
    .post-topic-name {
        font-size: 16px;
        line-height: 1.4;
    }

    .post-topic-time {
        font-size: 12px;
    }

    .post-sub-category-list {
        grid-template-columns: 1fr;
    }

    .post-sub-category-item,
    .post-sub-category-item:nth-child(-n + 2) {
        grid-column: span 1;
        min-height: 110px;
    }

    .post-sub-category-name {
        font-size: 15px;
    }

    .post-sub-category-count {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .post-sub-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-sub-category-item,
    .post-sub-category-item:nth-child(-n + 2) {
        grid-column: span 1;
    }

    .post-sub-category-name {
        font-size: 15px;
    }

    .post-sub-category-count {
        font-size: 12px;
    }
}
