/* Custom Carousel Styles for BPTP Verti Greens */
/* Add this to your theme's style.css or create a separate CSS file */

/* Main carousel container - minimal changes */
#upcoming_project_slider {
    position: relative;
    /* Don't change overflow - keep existing behavior */
}

/* Navigation container - positioned at bottom right */
.custom-carousel-navigation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Navigation buttons - matching existing Elementor style */
.custom-carousel-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.custom-carousel-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.custom-carousel-button:active {
    transform: translateY(0);
}

/* Disabled state */
.custom-carousel-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Arrow icons */
.custom-carousel-button i {
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
}

.custom-carousel-button:hover i {
    color: #000;
}

/* Screen reader text */
.elementor-screen-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-carousel-navigation {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .custom-carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .custom-carousel-button i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .custom-carousel-navigation {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .custom-carousel-button {
        width: 35px;
        height: 35px;
    }
    
    .custom-carousel-button i {
        font-size: 12px;
    }
}

/* Alternative dark theme for arrows (uncomment if needed) */
/*
.custom-carousel-button {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-carousel-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

.custom-carousel-button i {
    color: #fff;
}

.custom-carousel-button:hover i {
    color: #fff;
}
*/

/* Smooth fade transition alternative (uncomment to use fade instead of slide) */
/*
.custom-carousel-slides {
    position: relative;
}

.custom-carousel-slides > .elementor-element {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.custom-carousel-slides > .elementor-element.active {
    opacity: 1;
    position: relative;
}
*/

/* Loading state */
.custom-carousel-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus styles for accessibility */
.custom-carousel-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Animation for arrow appearance */
@keyframes slideInFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.custom-carousel-navigation {
    animation: slideInFromRight 0.5s ease-out 0.5s both;
}