@media (max-width: 767px) {
    .w-100-mobile {
        width: 100% !important;
    }
}

/* DF Case Slider Styles */

.df-case-slider__wrapper {
    width: 100%;
    position: relative;
}

.df-case-slider {
    width: 100%;
}

.df-case-slider__item {
    display: flex;
    flex-direction: column;
}

.df-case-slider__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 50px;
    background-color: #FFF;
}

.df-case-slider__title {
    margin: 0 0 1rem 0;
}

.df-case-slider__description {
    margin: 0 0 1rem 0;
}

.df-case-slider__button {
    display: inline-block;
    text-decoration: none;
}

.df-case-slider__content .budi_button{
    justify-content: flex-start !important;
}

.df-case-slider__image {
    width: 100%;
    height: 80vw !important;
    object-fit: cover;
    object-position: center;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .df-case-slider__content {
        padding: 30px 25px;
    }
}

/* Desktop: Display as grid/list (not slider) */
@media (min-width: 768px) {
    .df-case-slider__wrapper {
        display: block;
    }

    .df-case-slider__image {
        height: 100% !important;
    }
    
    .df-case-slider {
        display: block;
    }
    
    .df-case-slider .swiper-wrapper {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 2rem;
        transform: none !important;
    }
    
    .df-case-slider .swiper-slide {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: auto;
        min-height: 600px;
        flex: 1;
        min-width: 0;
        margin-right: 0 !important;
    }
    /* Odd swiper-slides: reverse column order */
    .df-case-slider .swiper-slide:nth-child(odd) {
        grid-template-columns: 1fr 1fr;
        direction: rtl;
    }
    .df-case-slider .swiper-slide:nth-child(odd) > * {
        direction: ltr;
    }
}

/* Mobile: Slider mode */
@media (max-width: 767px) {
    .df-case-slider {
        overflow: hidden;
    }
    
    .df-case-slider .swiper-wrapper {
        display: flex;
    }
    
    .df-case-slider .swiper-slide {
        width: 100%;
        flex-shrink: 0;
    }

    /* Navigation Arrows - Outside slider, bottom right */
    .df-case-slider__navigation {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 30px;
        z-index: 10;
        margin-top: 20px;
        padding: 0 20px 0 0;
    }

    .df-case-slider__navigation .swiper-button-prev,
    .df-case-slider__navigation .swiper-button-next {
        position: relative;
        width: 35px;
        height: 35px;
        margin: 0;
        top: auto;
        left: auto;
        right: auto;
        background-color: transparent;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .df-case-slider__navigation .swiper-button-prev {
        transform: rotate(180deg);
    }

    .df-case-slider__navigation .swiper-button-prev:after,
    .df-case-slider__navigation .swiper-button-next:after {
        display: none;
    }

    .df-case-slider__navigation .swiper-button-disabled {
        cursor: not-allowed;
    }

    .df-case-slider__navigation svg path {
        fill: #456D6A;
        transition: all 0.3s ease;
    }

    .df-case-slider__navigation .swiper-button-disabled svg path {
        fill: #858585;
    }
}

/* Hide navigation on desktop */
@media (min-width: 768px) {
    .df-case-slider__navigation {
        display: none;
    }
}

