/* Image Testimonials Section - WhatsApp-Style Carousel */

/* Carousel Container */
.netflix-carousel-container-imgs {
    position: relative;
    padding: 0 60px;
    margin: 0 auto;
    overflow: hidden;
}

/* Carousel Track - Horizontal Scroll */
.netflix-carousel-track-imgs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 20px 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.netflix-carousel-track-imgs::-webkit-scrollbar {
    display: none;
}

/* WhatsApp Card Container */
.whatsapp-card {
    flex: 0 0 calc(28% - 15px);
    /* Show more of next card */
    min-width: 280px;
    max-width: 350px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform 300ms ease, box-shadow 300ms ease;
    cursor: pointer;
}

.whatsapp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* WhatsApp Header */
.whatsapp-header {
    background: #128C7E;
    /* WhatsApp green */
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    background: #25D366;
    /* WhatsApp light green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-title {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-weight: 600;
    /* Font size handled globally */
}

/* WhatsApp Message Bubble */
.whatsapp-bubble {
    background: #DCF8C6;
    /* WhatsApp light green bubble */
    margin: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Image */
.whatsapp-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 500px;
    background: #1f272a;
}

/* Navigation Buttons - Always Visible with Pulse Animation */
.carousel-nav-button-imgs {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 1;
    transition: all 300ms ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    }
}

.netflix-carousel-container-imgs:hover .carousel-nav-button-imgs {
    opacity: 1;
    animation: none;
}

.carousel-nav-button-imgs:hover {
    background: rgba(212, 175, 55, 1);
    transform: translateY(-50%) scale(1.15);
    animation: none;
}

.carousel-nav-button-imgs:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-button-imgs svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.carousel-prev-imgs {
    left: 5px;
}

.carousel-next-imgs {
    right: 5px;
}

/* Hide buttons at scroll boundaries */
.carousel-prev-imgs.hidden,
.carousel-next-imgs.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .whatsapp-card {
        flex: 0 0 calc(42% - 10px);
        /* Show more of next card on medium screens */
        min-width: 260px;
        background: #1f272a;
    }
}

@media (max-width: 768px) {
    .netflix-carousel-container-imgs {
        padding: 0 40px;
    }

    .whatsapp-card {
        flex: 0 0 calc(70% - 10px);
        /* Show more of next card on tablet */
        min-width: 240px;

    }

    .whatsapp-header {
        padding: 10px 12px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    /* Font sizes handled globally */

    .carousel-nav-button-imgs {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-button-imgs svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .netflix-carousel-container-imgs {
        padding: 0 30px;
    }

    .whatsapp-card {
        flex: 0 0 calc(80% - 10px);
        /* Show more of next card on mobile */
        min-width: 260px;
        background-color: #1f272a;
    }

    .whatsapp-header {
        padding: 8px 10px;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    .whatsapp-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Font sizes handled globally */

    .whatsapp-bubble {
        margin: 8px;
    }

    .carousel-nav-button-imgs {
        width: 35px;
        height: 35px;
    }
}

/* Smooth scroll animation */
@media (prefers-reduced-motion: no-preference) {
    .netflix-carousel-track-imgs {
        scroll-snap-type: x mandatory;
    }

    .whatsapp-card {
        scroll-snap-align: start;
        background: #1f272a;

    }
}