/**
 * Gremaza WPB Addons - Image Carousel Styles
 * Author: Marsel Preci
 */

/* ============================================
   Image Carousel Styles
   ============================================ */

.gremaza-image-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.gremaza-image-carousel-slides {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
}

.gremaza-image-slide {
    position: relative;
    flex-shrink: 0;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.gremaza-image-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: inherit;
    transition: transform 0.5s ease;
    z-index: 0;
}

.gremaza-image-slide:hover::before {
    transform: scale(1.1);
}

.gremaza-image-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 1;
}

.gremaza-image-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    max-width: 90%;
    width: 100%;
    padding: 20px;
    transition: transform 0.4s ease;
}

.gremaza-image-slide:hover .gremaza-image-slide-content {
    transform: translate(-50%, -40%);
}

.gremaza-image-slide-title {
    margin: 0 0 20px 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.gremaza-image-slide-description {
    margin: 0 0 30px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
}

.gremaza-image-slide-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0078d6;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gremaza-image-slide-button:hover {
    background: #005fa3;
    transform: translateY(-2px);
}

.gremaza-image-carousel-prev,
.gremaza-image-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    z-index: 10;
}

.gremaza-image-carousel-prev.hidden,
.gremaza-image-carousel-next.hidden {
    display: none;
}

.gremaza-image-carousel-prev {
    left: 20px;
}

.gremaza-image-carousel-next {
    right: 20px;
}

.gremaza-image-carousel-prev:hover,
.gremaza-image-carousel-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gremaza-image-carousel-prev svg,
.gremaza-image-carousel-next svg {
    width: 24px;
    height: 24px;
}

.gremaza-image-carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.gremaza-image-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(51, 51, 51, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gremaza-image-carousel-dot:hover {
    background: rgba(51, 51, 51, 0.7);
}

.gremaza-image-carousel-dot.active {
    background: #333;
    width: 30px;
    border-radius: 6px;
}

/* Image Carousel Responsive Styles */
@media (max-width: 768px) {
    .gremaza-image-slide {
        height: 350px;
    }

    .gremaza-image-slide-title {
        font-size: 1.5rem;
    }

    .gremaza-image-slide-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .gremaza-image-slide-button {
        padding: 10px 25px;
        font-size: 13px;
    }

    .gremaza-image-carousel-prev,
    .gremaza-image-carousel-next {
        width: 40px;
        height: 40px;
    }

    .gremaza-image-carousel-prev {
        left: 10px;
    }

    .gremaza-image-carousel-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .gremaza-image-slide {
        height: 300px;
    }

    .gremaza-image-slide-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .gremaza-image-slide-description {
        font-size: 12px;
        margin-bottom: 15px;
    }
}
