/* Category Static Page – Frontend styles */

.csp-wrapper {
    margin: 1.5em 0;
}

/* List layout */
.csp-list .csp-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    align-items: flex-start;
}

.csp-list .csp-thumb {
    flex: 0 0 220px;
    max-width: 220px;
}

.csp-list .csp-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.csp-list .csp-content {
    flex: 1;
}

/* Grid layout */
.csp-grid {
    display: grid;
    gap: 24px;
}

.csp-grid.csp-cols-1 { grid-template-columns: 1fr; }
.csp-grid.csp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.csp-grid.csp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.csp-grid.csp-cols-4 { grid-template-columns: repeat(4, 1fr); }
.csp-grid.csp-cols-5 { grid-template-columns: repeat(5, 1fr); }
.csp-grid.csp-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
    .csp-grid.csp-cols-3,
    .csp-grid.csp-cols-4,
    .csp-grid.csp-cols-5,
    .csp-grid.csp-cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .csp-grid { grid-template-columns: 1fr !important; }
    .csp-list .csp-card { flex-direction: column; }
    .csp-list .csp-thumb { max-width: 100%; flex-basis: auto; }
}

.csp-grid .csp-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease;
}

.csp-grid .csp-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.csp-grid .csp-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.csp-grid .csp-content {
    padding: 16px;
}

/* Common */
.csp-title {
    margin: 0 0 8px;
    font-size: 1.25em;
    line-height: 1.3;
}

.csp-title a {
    text-decoration: none;
    color: inherit;
}

.csp-title a:hover {
    text-decoration: underline;
}

.csp-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

.csp-meta span + span {
    margin-left: 10px;
}

.csp-excerpt {
    color: #444;
    line-height: 1.55;
    margin-bottom: 10px;
}

.csp-readmore {
    margin: 10px 0 0;
}

.csp-button {
    display: inline-block;
    padding: 8px 16px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background .15s ease;
}

.csp-button:hover {
    background: #135e96;
}

.csp-empty {
    padding: 20px;
    background: #f6f7f7;
    border-left: 4px solid #ccc;
    color: #555;
}

/* Pagination */
.csp-pagination {
    margin: 30px 0 10px;
    text-align: center;
}

.csp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #2271b1;
    background: #fff;
    transition: all .15s ease;
}

.csp-pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.csp-pagination .page-numbers:hover:not(.current) {
    background: #f0f6fc;
    border-color: #2271b1;
}

.csp-pagination .dots {
    border: none;
    background: transparent;
}
