/* Custom Swiper styles to match the original Sly design */

/* Prevent horizontal scroll caused by carousel */
body {
    overflow-x: hidden;
}

.section-blue-mask-to-right-bottom {
    overflow-x: hidden;
    overflow-y: visible;
}

.wrap {
    position: relative;
    margin: 3em 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.swiper.realisations-carousel {
    height: 230px;
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
}

.swiper.realisations-carousel .swiper-wrapper {
    align-items: center;
}

.swiper.realisations-carousel .swiper-slide {
    width: 400px !important;
    height: 230px;
    background-color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: #ddd;
    text-align: center;
    position: relative;
    cursor: pointer;
    clip-path: polygon(10% 0%, 100% 0, 89% 100%, 0% 100%);
    -webkit-clip-path: polygon(10% 0%, 100% 0, 89% 100%, 0% 100%);
    transition: transform 0.3s ease;
}

@media screen and (max-width: 768px) {
    .swiper.realisations-carousel {
        height: 180px;
        padding: 0;
    }
    
    .swiper.realisations-carousel .swiper-slide {
        width: 300px !important;
        height: 180px;
    }

    /* Hide cube blog responsive */
    .page-id-564 .cube-dowino-right-container {
        display: none;
    }
}

.swiper.realisations-carousel .swiper-slide a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    flex-direction: column;
}

/* Swiper Scrollbar Custom Styling */
.wrap .container {
    padding-top: 60px;
    width: calc(100% - 30px);
}

.swiper-scrollbar {
    margin: 0 auto;
    height: 2px;
    background: #ccc;
    line-height: 0;
    position: relative;
    border-radius: 0;
    max-width: 100%;
}

.swiper-scrollbar-drag {
    height: 6px;
    background: #70ced4;
    position: relative;
    top: -1px;
    border-radius: 5px;
}

.swiper.realisations-carousel .swiper-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    opacity: 0;
    color: white;
    font-size: 14px;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
}

.swiper.realisations-carousel .swiper-slide:hover .overlay {
    opacity: 1;
}

.swiper.realisations-carousel .swiper-slide hr {
    width: 100px;
    height: 2px;
    border: 0;
    background-color: #70ced4;
    margin: 10px auto;
}

.swiper.realisations-carousel .swiper-slide span.realisation-title-carousel {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 28px;
    line-height: 1;
    color: white;
    max-width: calc(100% - 60px);
    margin: 0 auto;
}

.swiper.realisations-carousel .swiper-slide span.realisation-name-carousel {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 15px;
    color: white;
    max-width: calc(100% - 60px);
    margin: 0 auto;
}

/* Swiper Navigation if needed */
.swiper-button-next,
.swiper-button-prev {
    color: #70ced4;
}
