/* Archive template – ContentKlaar Kennisbank */

/* Site header */
.ck-kb-site-header {
    border-bottom: 1px solid #e2e2e2;
    background: #fff;
}

.ck-kb-site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ck-kb-site-header__logo {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.ck-kb-site-header__cta {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #16a34a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.ck-kb-site-header__cta:hover {
    background: #15803d;
    color: #fff;
}

.ck-kb-archive {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.ck-kb-archive__header {
    margin-bottom: 2rem;
}

/* Card grid */
.ck-kb-archive__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .ck-kb-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ck-kb-archive__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.ck-kb-card {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.ck-kb-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ck-kb-card__image {
    width: 100%;
    height: auto;
    display: block;
}

.ck-kb-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ck-kb-card__title {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.ck-kb-card__title a {
    text-decoration: none;
    color: inherit;
}

.ck-kb-card__title a:hover {
    text-decoration: underline;
}

.ck-kb-card__excerpt {
    font-size: 0.95rem;
    margin: 0 0 1rem;
    flex: 1;
}

.ck-kb-card__read-more {
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.ck-kb-card__read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.ck-kb-pagination,
.nav-links {
    /* target WP pagination wrapper */
}

.ck-kb-archive .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.ck-kb-archive .nav-links a,
.ck-kb-archive .nav-links span {
    padding: 0.4rem 0.85rem;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.ck-kb-archive .nav-links .current {
    font-weight: 600;
}

.ck-kb-archive .nav-links a:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Empty state */
.ck-kb-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.ck-kb-empty__title {
    margin: 0 0 1rem;
}

.ck-kb-empty__text {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.6;
}
