/* Project Carousel Styles */

.project-carousel-wrapper {
    position: relative;
    height: 350px;
    border-radius: 10px;
}

.project-carousel-wrapper.rounded-1 {
    border-radius: var(--rounded-1);
}

.project-carousel-wrapper .swiper {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.project-carousel-wrapper .swiper-wrapper {
    height: 100%;
    width: 100%;
}

.project-carousel-wrapper .swiper-slide {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-carousel-wrapper .swiper-slide a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-carousel-wrapper .swiper-slide img,
.project-carousel-wrapper .swiper-slide a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Required for Swiper fade effect */
.project-carousel-wrapper .swiper-fade .swiper-slide {
    opacity: 0 !important;
    pointer-events: none;
}

.project-carousel-wrapper .swiper-fade .swiper-slide-active {
    opacity: 1 !important;
    pointer-events: auto;
}

/* Navigation arrows styling */
.project-carousel-prev,
.project-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e243c;
    font-size: 34px;
    user-select: none;
    pointer-events: auto;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
}

/* Remove any default pseudo background */
.project-carousel-prev::after,
.project-carousel-next::after {
    background: none !important;
    box-shadow: none !important;
}

.project-carousel-prev {
    left: 15px;
}

.project-carousel-next {
    right: 15px;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .project-carousel-wrapper {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .project-carousel-wrapper {
        height: 250px;
    }

    .project-carousel-prev,
    .project-carousel-next {
        font-size: 14px;
        width: auto !important;
        height: auto !important;
    }

    .project-carousel-prev {
        left: 10px;
    }

    .project-carousel-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .project-carousel-wrapper {
        height: 200px;
    }

    .project-carousel-prev,
    .project-carousel-next {
        font-size: 12px;
        width: auto !important;
        height: auto !important;
    }

    .project-carousel-prev {
        left: 8px;
    }

    .project-carousel-next {
        right: 8px;
    }
}