/* Blog Archive — Rhima child theme (home.php) */

.post-hero{
    min-height:200px!important;
}
.post-hero-content{
    padding:0px!important;
}

/* ── Sectie wrapper ──────────────────────────────────────── */
.berichten-archive {
    padding: var(--section-spacing, 60px) 0;
}

.berichten-archive-inner {
    max-width: var(--site-width, 1280px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 20px);
}

/* ── Header ─────────────────────────────────────────────── */
.berichten-header {
    text-align: center;
    margin-bottom: 60px;
}

.berichten-title {
    font-size: var(--dmn-h1-size, 42px);
    font-weight: var(--dmn-h1-weight, 700);
    color: var(--dmn-secondary, #003366);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.berichten-subtitle {
    font-size: var(--dmn-font-body, 18px);
    color: var(--dmn-text, #666);
    margin: 0;
}

/* ── Filter dropdown ─────────────────────────────────────── */
.berichten-filter {
    max-width: 400px;
    margin: 0 auto 40px;
}

.categorie-filter-select {
    width: 100%;
    padding: 20px;
    font-size: var(--dmn-button-font-size, 16px);
    color: var(--dmn-text, #333);
    background: #fff;
    border-radius: var(--dmn-button-radius, 25px);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    box-shadow: var(--dmn-box-shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    border: none;
}

.categorie-filter-select:focus {
    outline: none;
    border-color: var(--dmn-primary, #7ab8e8);
}

/* ── Grid ────────────────────────────────────────────────── */
.berichten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* ── Kaart ───────────────────────────────────────────────── */
.bericht-card {
    background: #fff;
    border-radius: var(--dmn-image-radius, 12px);
    box-shadow: var(--dmn-box-shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bericht-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Kaart met afbeelding (overlay stijl) ────────────────── */
.bericht-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.bericht-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bericht-card:hover .bericht-card-image img {
    transform: scale(1.05);
}

.bericht-card-overlay {
    position: absolute;
    inset: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.2) 70%,
            rgba(0, 0, 0, 0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
}

.bericht-card-overlay-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
}

.bericht-card-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bericht-card-categorie {
    display: inline-block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bericht-card-title {
    font-size: var(--dmn-h4-size, 20px);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.bericht-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bericht-card-datum {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.bericht-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bericht-card-link svg {
    flex-shrink: 0;
}

.bericht-card-link:hover {
    color: var(--dmn-primary, #7ab8e8);
}

/* ── Kaart zonder afbeelding ─────────────────────────────── */
.bericht-card-text-only {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}

.bericht-card-text-only .bericht-card-categorie {
    color: var(--dmn-primary, #7ab8e8);
}

.bericht-card-text-only .bericht-card-title {
    color: var(--dmn-secondary, #003366);
}

.bericht-card-excerpt {
    font-size: 15px;
    color: var(--dmn-text, #555);
    line-height: 1.6;
    flex: 1;
}

.bericht-card-text-only .bericht-card-inner {
    margin-top: auto;
}

.bericht-card-text-only .bericht-card-datum {
    color: #999;
}

.bericht-card-text-only .bericht-card-link {
    color: var(--dmn-primary, #7ab8e8);
}

.bericht-card-text-only .bericht-card-link:hover {
    color: var(--dmn-secondary, #003366);
}

/* ── Empty state ─────────────────────────────────────────── */
.berichten-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--dmn-text-secondary, #666);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .berichten-archive {
        padding: 40px 0;
    }

    .berichten-header {
        margin-bottom: 40px;
    }

    .berichten-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}