/* WRAPPER */
.cp-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #f9fafb;
}

/* GRID */
.cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* CARD ITEM */
.cp-item {
    text-align: left;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
}

/* HOVER EFFECT (naik + shadow) */
.cp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

/* THUMB */
.cp-thumb {
    display: block;
    overflow: hidden;
}

.cp-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* ZOOM IMAGE */
.cp-item:hover .cp-thumb img {
    transform: scale(1.05);
}

/* TITLE */
.cp-title {
    padding: 10px 10px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
}

/* LINK */
.cp-title a {
    text-decoration: none;
    color: #111827;
    display: block;
}

.cp-title a:hover {
    color: #0073aa;
}

/* OPTIONAL: BADGE (kalau nanti mau dipakai) */
.cp-item::before {
    content: "HOT";
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    display: none; /* aktifkan kalau mau */
}

/* LOAD MORE BUTTON */
.cp-load-more {
    margin-top: 20px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.cp-load-more:hover {
    background: #005177;
}

/* LOADING */
.cp-loading {
    font-size: 14px;
    color: #666;
}

/* PAGINATION (jaga kalau masih kepakai di tempat lain) */
.cp-pagination {
    margin-top: 20px;
    text-align: center;
}

.cp-pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 8px;
}

.cp-pagination li {
    display: inline;
}

.cp-pagination a,
.cp-pagination span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    font-size: 14px;
}

.cp-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}