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

/* ── Wrapper ───────────────────────────────────────────────────────────────── */
.rg-wrap {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding-left: 32px;
}

/* ── Viewport ──────────────────────────────────────────────────────────────── */
.rg-viewport {
    overflow: hidden;
    width: 100%;
}

/* ── Track ─────────────────────────────────────────────────────────────────── */
.rg-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    user-select: none;
}

/* ── Kaart ─────────────────────────────────────────────────────────────────── */
.rg-card {
    flex: 0 0 calc((100% - 40px) / 3.2);
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
    cursor: pointer;
}

/* ── Afbeelding als aparte div — deze zoomt bij hover ─────────────────────── */
.rg-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.5s ease;
    border-radius: inherit;
}

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

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

/* ── Card body: alles onderin ──────────────────────────────────────────────── */
.rg-card-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

/* ── Titel + knop op één rij, beiden onderin ──────────────────────────────── */
.rg-card-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 0 18px 14px;
}

.rg-title-wrap {
    flex: 1;
    min-width: 0;
}

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

.rg-title {
    font-family: 'Mouse Memoirs', sans-serif;
    font-size: clamp(16px, 1.6vw, 26px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* ── Lees meer — rechtsonder, zoomt bij hover ─────────────────────────────── */
.rg-btn {
    flex-shrink: 0;
    align-self: flex-end;
    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: 50px;
    padding: 6px 15px;
    white-space: nowrap;
    transition: background 0.22s ease, transform 0.22s ease;
    display: inline-block;
}

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

/* ── Tags-balk onderin ─────────────────────────────────────────────────────── */
.rg-tags {
    background: #AB92BF;
    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 18px 18px;
}

/* ── Navigatie ─────────────────────────────────────────────────────────────── */
.rg-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    padding-right: 32px;
}

.rg-arrow {
    background: none;
    border: 2px solid #185361;
    color: #185361;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.rg-arrow:hover {
    background: #185361;
    color: #fff;
}

.rg-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.rg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #185361;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.rg-dot-active {
    background: #185361;
    transform: scale(1.2);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .rg-wrap { padding-left: 20px; }
    .rg-card { flex: 0 0 calc((100% - 20px) / 2.15); }
}

@media (max-width: 560px) {
    .rg-wrap { padding-left: 16px; }
    .rg-card { flex: 0 0 calc(100% / 1.15); }
    .rg-title { font-size: 18px; }
}
