.cgpt-npg-wrap,
.cgpt-npg-wrap * {
    box-sizing: border-box;
}

.cgpt-npg-wrap {
    transition: opacity .18s ease;
}

.cgpt-npg-title {
    margin: 0 0 22px;
    color: var(--cgpt-npg-title-color);
    line-height: 1.2;
}

.cgpt-npg-search {
    margin: 0 0 22px;
}

.cgpt-npg-search input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--cgpt-npg-search-border);
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    line-height: 1.4;
}

.cgpt-npg-grid {
    display: grid;
    gap: 20px;
}

.cgpt-npg-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.cgpt-npg-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cgpt-npg-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cgpt-npg-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cgpt-npg-auto-cols {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cgpt-npg-card {
    display: flex;
    flex-direction: column;
    background: var(--cgpt-npg-card-bg);
    border: 1px solid var(--cgpt-npg-card-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--cgpt-npg-card-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
}

.cgpt-npg-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cgpt-npg-card-shadow-hover);
}

.cgpt-npg-thumb {
    aspect-ratio: 16 / 9;
    background: var(--cgpt-npg-thumb-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cgpt-npg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cgpt-npg-thumb-placeholder {
    font-size: 40px;
    color: var(--cgpt-npg-thumb-placeholder);
    font-weight: 700;
}

.cgpt-npg-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    flex: 1;
}

.cgpt-npg-site-name {
    font-size: 13px;
    color: var(--cgpt-npg-meta-text);
    font-weight: 600;
}

.cgpt-npg-title-card {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--cgpt-npg-title-color);
}

.cgpt-npg-content {
    color: var(--cgpt-npg-body-text);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    max-height: 9.6em;
}

.cgpt-npg-content p {
    margin: 0 0 10px;
}

.cgpt-npg-content p:last-child {
    margin-bottom: 0;
}

.cgpt-npg-content a {
    text-decoration: underline;
}

.cgpt-npg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cgpt-npg-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--cgpt-npg-tag-border);
    background: var(--cgpt-npg-tag-bg);
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    color: var(--cgpt-npg-tag-text);
}

.cgpt-npg-actions {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.cgpt-npg-button {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--cgpt-button-color);
    color: var(--cgpt-button-text) !important;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    border: 1px solid var(--cgpt-button-border);
    box-shadow: var(--cgpt-button-shadow);
    transition: all .2s ease;
    cursor: pointer;
}

.cgpt-npg-button:hover {
    background: var(--cgpt-button-hover);
    color: var(--cgpt-button-text) !important;
    border-color: var(--cgpt-button-border);
    transform: translateY(-1px);
}

.cgpt-npg-domain {
    font-size: 13px;
    color: var(--cgpt-npg-meta-text);
    word-break: break-word;
}

.cgpt-npg-post-link {
    font-size: 14px;
    color: var(--cgpt-npg-meta-text);
    text-decoration: none;
}

.cgpt-npg-post-link:hover {
    text-decoration: underline;
}

.cgpt-npg-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.cgpt-npg-pagination a,
.cgpt-npg-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 10px 12px;
    border: 1px solid var(--cgpt-npg-pagination-border);
    border-radius: 10px;
    background: var(--cgpt-npg-pagination-bg);
    color: var(--cgpt-npg-pagination-text);
    text-decoration: none;
}

.cgpt-npg-pagination a:hover {
    transform: translateY(-1px);
}

.cgpt-npg-pagination .current {
    background: var(--cgpt-npg-pagination-current-bg);
    color: var(--cgpt-npg-pagination-current-text);
    border-color: var(--cgpt-npg-pagination-current-border);
}

.cgpt-npg-footer-cta {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.cgpt-npg-divider-wrap {
    margin-top: 32px;
}

body.cgpt-npg-single-open .entry-header,
body.cgpt-npg-single-open .page-header,
body.cgpt-npg-single-open .featured-image,
body.cgpt-npg-single-open .post-image,
body.cgpt-npg-single-open .inside-page-hero,
body.cgpt-npg-single-open .page-hero,
body.cgpt-npg-single-open .generate-page-header,
body.cgpt-npg-single-open .gb-container.page-hero,
body.cgpt-npg-single-open .wp-post-image {
    display: none !important;
}

body.cgpt-npg-single-open .cgpt-npg-full-cover .wp-post-image,
body.cgpt-npg-single-open .cgpt-npg-full-cover img {
    display: block !important;
}

.cgpt-npg-hidden-by-fetch {
    display: none !important;
}

.cgpt-npg-full-post-view {
    width: 100%;
    background: #fff;
    padding: 34px 20px 64px;
}

.cgpt-npg-full-post-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.cgpt-npg-back-row {
    display: flex;
    justify-content: center;
    margin: 22px 0 28px;
}

.cgpt-npg-back-row-bottom {
    margin-top: 42px;
    margin-bottom: 0;
}

.cgpt-npg-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1px solid #dbe3e8;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15,23,42,.12);
    transition: all .2s ease;
}

.cgpt-npg-back-button:hover {
    background: #f8fafc;
    color: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(15,23,42,.16);
}

.cgpt-npg-back-arrow {
    font-size: 22px;
    line-height: .8;
    margin-top: -1px;
}

.cgpt-npg-full-cover {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 34px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15,23,42,.16);
    background: #f1f5f9;
}

.cgpt-npg-full-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.cgpt-npg-full-article {
    max-width: 860px;
    margin: 0 auto;
}

.cgpt-npg-full-title {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    color: #0f172a;
}

.cgpt-npg-full-content {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

.cgpt-npg-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.cgpt-npg-full-content iframe,
.cgpt-npg-full-content figure {
    max-width: 100%;
}

.cgpt-npg-full-meta {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .cgpt-npg-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .cgpt-npg-cols-2,
    .cgpt-npg-cols-3,
    .cgpt-npg-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cgpt-npg-grid,
    .cgpt-npg-cols-2,
    .cgpt-npg-cols-3,
    .cgpt-npg-cols-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cgpt-npg-body {
        padding: 16px;
    }

    .cgpt-npg-title-card {
        font-size: 18px;
    }

    .cgpt-npg-full-post-view {
        padding: 22px 14px 48px;
    }

    .cgpt-npg-full-cover {
        border-radius: 18px;
        margin-bottom: 26px;
    }

    .cgpt-npg-full-content {
        font-size: 17px;
    }

    .cgpt-npg-back-row {
        justify-content: stretch;
        margin: 20px 0 24px;
    }

    .cgpt-npg-back-button {
        width: 100%;
        padding: 14px 18px;
    }
}