/* Use Cases Swiper Block Styles */

.use-cases-swiper-container {
    width: 100%;
    height: 100%;
}

.use-cases-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    user-select: none;
}

.use-cases-swiper .swiper-wrapper {
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.use-cases-swiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.swiper-use-case-card {
    display: block;
    cursor: pointer;
    width: 100%;
    max-height: 60vh;
    /* Make it a perfect square */
    aspect-ratio: 1/1;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease-in-out;
}


.swiper-use-case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.use-case-swiper-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.6rem;
    background: linear-gradient(transparent, var(--color-secondary));
    color: var(--color-background);
    font-size: 3.6rem !important;
    font-weight: 600;
    font-family: var(--redhat-display);
    line-height: 1.3;
    text-align: center;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 0 !important;
}

.use-cases-swiper .swiper-pagination {
    text-align: center;
    margin-top: 2rem;
}

.use-cases-swiper .swiper-pagination-bullet {
    background: var(--accent-gray-subtle);
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 6px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.use-cases-swiper .swiper-pagination-bullet-active {
    background: var(--color-secondary);
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {

    .use-case-swiper-title {
        font-size: 2.6rem !important;
        padding: 1.2rem;
    }

    .use-cases-swiper .swiper-pagination {
        margin-top: 4rem;
    }
}

@media screen and (max-width: 480px) {
    .use-case-card img {
    }
    
    .use-case-title {
        font-size: 1.8rem;
        padding: 1rem;
    }
}