.cpcg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.cpcg-card {
    position: relative;
    display: block;
    min-height: 360px;
    overflow: hidden;
    text-decoration: none !important;
    background-color: #f3f3f3;
    isolation: isolate;
}

.cpcg-card-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transform: scale(1);
    transition: transform 0.3s ease 0s;
    will-change: transform;
}

.cpcg-card:hover .cpcg-card-image,
.cpcg-card:focus .cpcg-card-image,
.cpcg-card:focus-visible .cpcg-card-image {
    transform: scale(var(--cpcg-hover-scale, 1.08));
}

.cpcg-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    background-color: rgba(0, 0, 0, 0.18);
    transition: background-color 0.3s ease 0s;
    pointer-events: none;
}

.cpcg-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    min-height: inherit;
    padding: 40px;
    box-sizing: border-box;
}

.cpcg-card-title {
    display: block;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
}

.cpcg-card-count {
    display: block;
    margin: -10px 0 18px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

.cpcg-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: color 0.3s ease 0s, background-color 0.3s ease 0s, border-color 0.3s ease 0s;
}

.cpcg-card:hover .cpcg-card-button,
.cpcg-card:focus .cpcg-card-button,
.cpcg-card:focus-visible .cpcg-card-button {
    background-color: #000000;
    color: #ffffff;
}

.cpcg-empty-message {
    padding: 16px;
    border: 1px dashed #d5d5d5;
    background: #fafafa;
    color: #333333;
}

@media (max-width: 1024px) {
    .cpcg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpcg-card {
        min-height: 320px;
    }

    .cpcg-card-title {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .cpcg-grid {
        grid-template-columns: 1fr;
    }

    .cpcg-card {
        min-height: 260px;
    }

    .cpcg-card-content {
        padding: 28px;
    }

    .cpcg-card-title {
        font-size: 28px;
    }
}
