@import url('https://fonts.googleapis.com/css2?family=Mouse+Memoirs&family=Inter:wght@400;600;700&display=swap');

/* ── Wrapper ───────────────────────────────────────────────────────────────── */
.rg-bloggrid-wrap {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* ── Bovenste rij ──────────────────────────────────────────────────────────── */
.rg-featured {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.rg-main-wrap {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Twee kleine kaarten rechts gestapeld */
.rg-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rg-side-card {
    flex: 1;
    min-height: 0;
}

/* ── Onderste grid: 3 kolommen ─────────────────────────────────────────────── */
.rg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.rg-grid-card {
    aspect-ratio: 3 / 4;
}

/* ── Kaart basis ───────────────────────────────────────────────────────────── */
.rg-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #fff;
    background: #ccc;
    box-shadow: 0 3px 16px rgba(0,0,0,0.1);
}

/* Grote featured kaart vult de volle hoogte */
.rg-featured-card {
    flex: 1;
    height: 100%;
}

/* ── Afbeelding zoom ───────────────────────────────────────────────────────── */
.rg-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    border-radius: inherit;
    z-index: 0;
}

.rg-card:hover .rg-bg {
    transform: scale(1.07);
}

/* ── Overlay ───────────────────────────────────────────────────────────────── */
.rg-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 20%,
        rgba(0,0,0,0.75) 100%
    );
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

/* ── Categorie-label linksboven ────────────────────────────────────────────── */
.rg-cat {
    position: absolute;
    top: 13px;
    left: 13px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.75);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #fff;
    text-transform: uppercase;
    z-index: 3;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

/* ── Inhoud onderin ────────────────────────────────────────────────────────── */
.rg-body {
    position: relative;
    z-index: 2;
    padding: 14px 18px 16px;
}

.rg-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.rg-title {
    font-family: 'Mouse Memoirs', sans-serif;
    font-weight: 400;
    color: #fff;
    line-height: 1.22;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.rg-title-lg {
    font-size: clamp(18px, 1.9vw, 26px);
}

.rg-title-sm {
    font-size: clamp(14px, 1.3vw, 18px);
    margin-bottom: 8px;
}

/* ── Knop ──────────────────────────────────────────────────────────────────── */
.rg-btn {
    display: inline-block;
    font-family: 'Mouse Memoirs', sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.85);
    border-radius: 30px;
    padding: 6px 16px;
    transition: background 0.22s, transform 0.22s;
}

.rg-card:hover .rg-btn {
    background: rgba(255,255,255,0.22);
    transform: scale(1.06);
}

/* ── Tags-balk grote kaart ─────────────────────────────────────────────────── */
.rg-tags {
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 9px 18px;
    text-align: center;
    line-height: 1.4;
    border-radius: 0 0 16px 16px;
    flex-shrink: 0;
}

/* ── Leeg bericht ──────────────────────────────────────────────────────────── */
.rg-leeg {
    font-size: 14px;
    color: #666;
    padding: 1rem 0;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .rg-featured {
        grid-template-columns: 1fr;
    }
    .rg-main-wrap {
        min-height: 320px;
    }
    .rg-side {
        flex-direction: row;
    }
    .rg-side-card {
        aspect-ratio: 3 / 2.5;
    }
    .rg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .rg-side {
        flex-direction: column;
    }
    .rg-side-card {
        aspect-ratio: 3 / 2;
    }
    .rg-grid {
        grid-template-columns: 1fr;
    }
}
