.ragunda-slider {
    background: var(--ragunda-slider-bg, #fffbe6);
    color: var(--ragunda-slider-text, #1d1d1d);
    padding: 80px 0 120px 0;
    position: relative;
    overflow-x: hidden;
}

.ragunda-slider--dark {
    --ragunda-slider-bg: #1d1d1d;
    --ragunda-slider-text: #fffbe6;
}

.ragunda-slider__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    overflow: visible;
    opacity: 0;
    transform: translateY(30px);
    animation: ragundaSliderFadeIn 0.8s ease-out forwards;
    position: relative;
}

@keyframes ragundaSliderFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ragunda-slider__content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    overflow: visible;
    position: relative;
    flex-wrap: wrap;
    /* Zorg ervoor dat de navigatiepijltjes binnen het grid blijven */
    justify-content: flex-start;
}

.ragunda-slider__text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 30%;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-30px);
    animation: ragundaSliderTextFadeIn 0.7s ease-out 0.2s forwards;
    /* Zorg ervoor dat de tekst niet wordt overschreven door de cards */
    position: relative;
    z-index: 10;
}

@keyframes ragundaSliderTextFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.ragunda-slider__title {
    font-family: 'Gotkin', var(--ragunda-font, Arial, sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--ragunda-slider-text, #1d1d1d);
    line-height: 48px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: ragundaSliderTitleFadeIn 0.6s ease-out 0.4s forwards;
}

@keyframes ragundaSliderTitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ragunda-slider__subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--ragunda-slider-text, #1d1d1d);
    font-family: 'Gotkin', var(--ragunda-font, Arial, sans-serif);
    opacity: 0;
    transform: translateY(15px);
    animation: ragundaSliderSubtitleFadeIn 0.6s ease-out 0.5s forwards;
}

@keyframes ragundaSliderSubtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ragunda-slider__description {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ragunda-slider-text, #1d1d1d);
    margin: 0;
    font-weight: 400;
    margin-bottom: 0;
    max-width: 100%;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    animation: ragundaSliderDescriptionFadeIn 0.6s ease-out 0.6s forwards;
}

@keyframes ragundaSliderDescriptionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ragunda-slider__button {
    display: inline-block;
    border: 2px solid var(--ragunda-slider-text, #1d1d1d);
    border-radius: 10px;
    padding: 0.6em 1.4em;
    background: none;
    color: var(--ragunda-slider-text, #1d1d1d);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    width: auto;
    box-shadow: none;
    text-align: left;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(10px);
    animation: ragundaSliderButtonFadeIn 0.5s ease-out 0.7s forwards;
}

@keyframes ragundaSliderButtonFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ragunda-slider__button:hover,
.ragunda-slider__button:focus {
    background: var(--ragunda-slider-text, #1d1d1d);
    color: var(--ragunda-slider-bg, #fffbe6);
    border-color: var(--ragunda-slider-text, #1d1d1d);
    text-decoration: none !important;
    box-shadow: none;
}

.ragunda-slider--dark .ragunda-slider__button {
    border: 2px solid #ffc000;
    color: #ffc000;
}

.ragunda-slider--dark .ragunda-slider__button:hover,
.ragunda-slider--dark .ragunda-slider__button:focus {
    background: #ffc000;
    color: #1d1d1d;
    border-color: #ffc000;
}

.ragunda-slider__button:after {
    display: none !important;
}

.ragunda-slider__cards-container {
    position: relative;
    overflow: hidden;
    flex: 1;
    margin-right: -100vw;
    padding-right: 100vw;
    opacity: 0;
    transform: translateX(30px);
    animation: ragundaSliderCardsFadeIn 0.7s ease-out 0.3s forwards;
    min-height: 300px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    width: 100%;
    z-index: 5;
}

@keyframes ragundaSliderCardsFadeIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.ragunda-slider__cards {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    width: max-content;
    overflow: visible; /* we schuiven met transform, container hidden houdt binnen grid */
    padding-bottom: 1rem;
    /* trek de rail rechts door voorbij het grid */
    margin-right: -100vw;
    padding-right: 100vw;
}

.ragunda-slider__card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: ragundaSliderCardFadeIn 0.6s ease-out forwards;
}

.ragunda-slider__card:nth-child(1) {
    animation-delay: 0.5s;
}

.ragunda-slider__card:nth-child(2) {
    animation-delay: 0.6s;
}

.ragunda-slider__card:nth-child(3) {
    animation-delay: 0.7s;
}

.ragunda-slider__card:nth-child(4) {
    animation-delay: 0.8s;
}

.ragunda-slider__card:nth-child(5) {
    animation-delay: 0.9s;
}

@keyframes ragundaSliderCardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ragunda-slider__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.ragunda-slider__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.ragunda-slider__card-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.ragunda-slider__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ragunda-slider__card:hover .ragunda-slider__card-image {
    transform: scale(1.05);
}

.ragunda-slider__card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ragunda-slider__card:hover .ragunda-slider__card-overlay {
    opacity: 1;
}

.ragunda-slider__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.ragunda-slider__card-title {
    font-family: 'Gotkin', var(--ragunda-font, Arial, sans-serif);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ragunda-slider__card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.ragunda-slider__card-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #ffc000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.ragunda-slider__card:hover .ragunda-slider__card-icon {
    background: #ffc000;
    transform: scale(1.1);
}

.ragunda-slider__card:hover .ragunda-slider__card-icon::before {
    width: 100%;
    height: 100%;
}

.ragunda-slider__card-icon svg {
    width: 20px;
    height: 20px;
    fill: #1d1d1d;
    transition: fill 0.3s ease;
}

.ragunda-slider__card:hover .ragunda-slider__card-icon svg {
    fill: #1d1d1d;
}

/* Touch scroll functionaliteit - verwijderd omdat het al bovenaan staat */

.ragunda-slider__cards::-webkit-scrollbar {
    display: none;
}

/* Zorg ervoor dat de navigatiepijltjes altijd zichtbaar zijn */
.ragunda-slider__navigation {
    position: relative !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
}

.ragunda-slider__card-placeholder {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ragunda-slider__placeholder-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.ragunda-slider__placeholder-bg::before {
    content: '📷';
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ragunda-slider__navigation {
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    opacity: 1;
    z-index: 9999;
    pointer-events: auto;
    /* achtergrond en containerframe weg */
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    justify-content: flex-end;
    border: none;
    /* Force visibility */
    visibility: visible !important;
    display: flex !important;
    margin-top: 20px;
    margin-bottom: 20px;
    /* uitlijnen op rechter gridrand van 1200px container */
    max-width: 1200px;
    margin-left: auto;
    margin-right: 1.5rem; /* zelfde padding als container */
}



.ragunda-slider__nav-button {
    width: 40px;
    height: 40px;
    border: none;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000000;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 3;
}

.ragunda-slider__nav-button:hover,
.ragunda-slider__nav-button:focus {
    background: #ffc000 !important;
    color: #1d1d1d !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Zelfde stijl als card-icon hover */
    position: relative;
}

.ragunda-slider__nav-button:hover svg,
.ragunda-slider__nav-button:focus svg {
    fill: #1d1d1d !important;
}

.ragunda-slider__nav-button:disabled,
.ragunda-slider__nav-button[disabled],
.ragunda-slider__nav-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    background: rgba(128, 128, 128, 0.5) !important;
    color: rgba(128, 128, 128, 0.8) !important;
    border-color: rgba(128, 128, 128, 0.5) !important;
}

.ragunda-slider__nav-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
    transform: scale(1);
}

/* Zelfde stijl als card-icon ::before voor gele achtergrond effect */
.ragunda-slider__nav-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.ragunda-slider__nav-button:hover::before,
.ragunda-slider__nav-button:focus::before {
    width: 0;
    height: 0;
}

.ragunda-slider__nav-button:hover svg,
.ragunda-slider__nav-button:focus svg {
    fill: #1d1d1d;
}

.ragunda-slider__nav-next {
    transform: none;
}

.ragunda-slider__nav-next:hover,
.ragunda-slider__nav-next:focus {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Zelfde stijl als card-icon hover */
    position: relative;
}

.ragunda-slider--dark .ragunda-slider__nav-button {
    background: #ffc000 !important;
    color: #1d1d1d !important;
    border: none !important;
}

.ragunda-slider--dark .ragunda-slider__nav-button:hover,
.ragunda-slider--dark .ragunda-slider__nav-button:focus {
    background: #e6ac00 !important;
    color: #1d1d1d !important;
    transform: scale(1.1) !important;
    /* Zelfde stijl als card-icon hover */
    position: relative;
}

.ragunda-slider--dark .ragunda-slider__nav-next {
    background: #ffc000 !important;
    color: #1d1d1d !important;
    border: none !important;
}

.ragunda-slider--dark .ragunda-slider__nav-next:hover,
.ragunda-slider--dark .ragunda-slider__nav-next:focus,
.ragunda-slider--dark .ragunda-slider__nav-next:active {
    background: #e6ac00 !important;
    color: #1d1d1d !important;
    transform: scale(1.1) !important;
    /* Zelfde stijl als card-icon hover */
    position: relative;
}

.ragunda-slider--dark .ragunda-slider__navigation {
    background: rgba(255, 192, 0, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 192, 0, 0.3);
}

@media (max-width: 900px) {
    .ragunda-slider {
        padding: 60px 0 100px 0;
        overflow-x: hidden;
    }
    
    .ragunda-slider__container {
        overflow: visible;
    }
    
    .ragunda-slider__content {
        flex-direction: column;
        gap: 2rem;
        overflow: visible;
        flex-wrap: wrap;
    }
    
    .ragunda-slider__text {
        width: 100%;
        text-align: left;
    }
    
    .ragunda-slider__title {
        font-size: 2rem;
        line-height: 1.3;
        text-align: left;
    }
    
    .ragunda-slider__subtitle {
        font-size: 1.5rem;
        text-align: left;
    }
    
    .ragunda-slider__description {
        text-align: left;
    }
    
    .ragunda-slider__cards-container {
        width: 100%;
        overflow: hidden;
        padding-bottom: 20px;
        margin-right: 0;
        padding-right: 0;
        margin-left: 0;
        padding-left: 0;
    }
    
    .ragunda-slider__cards {
        gap: 1.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin-right: 0;
        padding-right: 1rem; /* ruimte voor scrollbar/knip, voorkomt 1px overflow */
        margin-left: 0;
        padding-left: 0;
        box-sizing: border-box;
    }
    
    .ragunda-slider__card {
        flex: 0 0 280px;
        height: 200px;
    }
    
    .ragunda-slider__card-image-wrap {
        height: 200px;
    }
    
    .ragunda-slider__card-content {
        padding: 1rem;
    }
    
    .ragunda-slider__card-title {
        font-size: 16px;
        color: #fff;
    }
    
    .ragunda-slider__card-icon {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
    }
    
    .ragunda-slider__card-icon svg {
        width: 16px;
        height: 16px;
        fill: #1d1d1d;
    }
    
    .ragunda-slider__navigation {
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex !important;
        justify-content: center;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.5rem;
        border-radius: 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        min-width: 120px;
        /* Force visibility */
        visibility: visible !important;
        /* Gecentreerd onder de cards */
        margin-left: auto;
        margin-right: auto;
        /* Zorg ervoor dat de navigatiepijltjes binnen het grid blijven */
        max-width: 110px;
    }
}

@media (max-width: 768px) {
    .ragunda-slider {
        padding: 40px 0 80px 0;
        overflow-x: hidden;
    }
    
    .ragunda-slider__container {
        padding: 0 1.5rem;
        overflow: visible;
    }
    
    .ragunda-slider__content {
        gap: 1.5rem;
        overflow: visible;
        flex-wrap: wrap;
    }
    
    .ragunda-slider__text {
        text-align: left;
    }
    
    .ragunda-slider__title {
        font-size: 1.8rem;
        text-align: left;
    }
    
    .ragunda-slider__subtitle {
        font-size: 1.3rem;
        text-align: left;
    }
    
    .ragunda-slider__description {
        font-size: 14px;
        text-align: left;
    }
    
    .ragunda-slider__cards {
        gap: 1.2rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin-right: 0;
        padding-right: 1rem;
        margin-left: 0;
        padding-left: 0;
        box-sizing: border-box;
    }

    .ragunda-slider__cards-container {
        width: 100%;
        overflow: hidden;
        padding-bottom: 20px;
        margin-right: 0;
        padding-right: 0;
        margin-left: 0;
        padding-left: 0;
    }
    
    .ragunda-slider__card {
        flex: 0 0 240px;
        height: 180px;
    }
    
    .ragunda-slider__card-image-wrap {
        height: 180px;
    }
    
    .ragunda-slider__card-content {
        padding: 0.8rem;
    }
    
    .ragunda-slider__card-title {
        font-size: 14px;
        color: #fff;
    }
    
    .ragunda-slider__card-icon {
        top: 0.5rem;
        right: 0.5rem;
        width: 30px;
        height: 30px;
    }
    
    .ragunda-slider__card-icon svg {
        width: 14px;
        height: 14px;
        fill: #1d1d1d;
    }
    
    .ragunda-slider__navigation {
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex !important;
        justify-content: center;
        gap: 0.8rem;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.4rem;
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        min-width: 110px;
        /* Force visibility */
        visibility: visible !important;
        /* Gecentreerd onder de cards */
        margin-left: auto;
        margin-right: auto;
        /* Zorg ervoor dat de navigatiepijltjes binnen het grid blijven */
        max-width: 100px;
    }
    
    .ragunda-slider__nav-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
        background: #ffffff !important;
        color: #000000 !important;
    }
}

@media (max-width: 480px) {
    .ragunda-slider {
        padding: 30px 0 70px 0;
        overflow-x: hidden;
    }
    
    .ragunda-slider__container {
        padding: 0 1.5rem;
        overflow: visible;
    }
    
    .ragunda-slider__content {
        gap: 1rem;
        overflow: visible;
        flex-wrap: wrap;
    }
    
    .ragunda-slider__text {
        text-align: left;
    }
    
    .ragunda-slider__title {
        font-size: 1.5rem;
        text-align: left;
    }
    
    .ragunda-slider__subtitle {
        font-size: 1.1rem;
        text-align: left;
    }
    
    .ragunda-slider__description {
        font-size: 13px;
        text-align: left;
    }
    
    .ragunda-slider__cards {
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin-right: 0;
        padding-right: 1rem;
        margin-left: 0;
        box-sizing: border-box;
    }
    
    .ragunda-slider__cards-container {
        width: 100%;
        overflow: hidden;
        padding-bottom: 20px;
        margin-right: 0;
        padding-right: 0;
        margin-left: 0;
        padding-left: 0;
    }
    
    .ragunda-slider__card {
        flex: 0 0 200px;
        height: 160px;
    }
    
    .ragunda-slider__card-image-wrap {
        height: 160px;
    }
    
    .ragunda-slider__card-content {
        padding: 0.6rem;
    }
    
    .ragunda-slider__card-title {
        font-size: 12px;
        color: #fff;
    }
    
    .ragunda-slider__card-icon {
        top: 0.4rem;
        right: 0.4rem;
        width: 25px;
        height: 25px;
    }
    
    .ragunda-slider__card-icon svg {
        width: 12px;
        height: 12px;
        fill: #1d1d1d;
    }
    
    .ragunda-slider__navigation {
        position: relative;
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex !important;
        justify-content: center;
        gap: 0.6rem;
        background: rgba(255, 255, 255, 0.95);
        padding: 0.3rem;
        border-radius: 18px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        min-width: 100px;
        /* Force visibility */
        visibility: visible !important;
        /* Gecentreerd onder de cards */
        margin-left: auto;
        margin-right: auto;
        /* Zorg ervoor dat de navigatiepijltjes binnen het grid blijven */
        max-width: 90px;
    }
    
    .ragunda-slider__nav-button {
        width: 30px;
        height: 30px;
        font-size: 12px;
        background: #ffffff !important;
        color: #000000 !important;
    }
} 