.custom-blog-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.custom-blog-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
}

.blog-cat-item {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    position: relative;
    transition: 0.2s ease;
}

.blog-cat-item:hover,
.blog-cat-item.active {
    color: #111;
    font-weight: 600;
}

.blog-cat-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 100%;
    height: 2px;
    background: #111;
}

.custom-blog-results.loading {
    opacity: 0.55;
    pointer-events: none;
}

.custom-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 26px;
}

.custom-blog-card {
    display: flex;
    flex-direction: column;
}

.custom-blog-thumb-link {
    display: block;
    text-decoration: none;
}

.custom-blog-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #f2f2f2;
    margin-bottom: 14px;
}

.custom-blog-thumb img,
.custom-blog-no-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-blog-no-thumb {
    background: linear-gradient(135deg, #e7e7e7, #cfcfcf);
}

.custom-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.custom-blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f1f1f1;
    color: #666;
    font-size: 12px;
    line-height: 1;
}

.custom-blog-title {
    font-size: 31px;
    line-height: 1.25;
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.custom-blog-title a {
    color: #111;
    text-decoration: none;
}

.custom-blog-title a:hover {
    opacity: 0.85;
}

.custom-blog-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 16px;
}

.custom-blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 13px;
    margin-top: auto;
}

.custom-blog-meta .dot {
    font-size: 10px;
}

.custom-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 38px;
}

.blog-page-item {
    min-width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #666;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
}

.blog-page-item:hover,
.blog-page-item.active {
    background: #111;
    color: #fff;
}

.custom-blog-empty {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 15px;
}

@media (max-width: 1024px) {
    .custom-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-blog-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .custom-blog-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .custom-blog-cats {
        gap: 14px 18px;
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-bottom: 12px;
    }

    .custom-blog-title {
        font-size: 21px;
    }
}