/**
 * CT Event Loop Carousel Styles
 */

.ct-event-loop-carousel-wrapper {
    position: relative;
    width: 100%;
}

.ct-event-loop-carousel {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ct-event-loop-carousel.slick-initialized {
    opacity: 1;
}

.ct-carousel-slide {
    /* Padding is now set inline per carousel instance */
    box-sizing: border-box;
    outline: none; /* Remove focus outline on slides */
}

/* Ensure loop template content is properly contained */
.ct-carousel-slide > .elementor {
    width: 100%;
}

.ct-carousel-slide > .elementor-element {
    width: 100%;
}

/* Slick Arrow Styles */
.ct-event-loop-carousel .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.ct-event-loop-carousel .slick-arrow:before {
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    opacity: 1;
}

.ct-event-loop-carousel .slick-prev {
    left: -20px;
}

.ct-event-loop-carousel .slick-prev:before {
    content: '\f053';
}

.ct-event-loop-carousel .slick-next {
    right: -20px;
}

.ct-event-loop-carousel .slick-next:before {
    content: '\f054';
}

.ct-event-loop-carousel .slick-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.ct-event-loop-carousel .slick-arrow:focus {
    outline: none;
}

.ct-event-loop-carousel .slick-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slick Dots Styles */
.ct-event-loop-carousel .slick-dots {
    position: absolute;
    bottom: -40px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

.ct-event-loop-carousel .slick-dots li {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
}

.ct-event-loop-carousel .slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    outline: none;
    transition: all 0.3s ease;
}

.ct-event-loop-carousel .slick-dots li button:hover,
.ct-event-loop-carousel .slick-dots li button:focus {
    outline: none;
}

.ct-event-loop-carousel .slick-dots li.slick-active button {
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .ct-event-loop-carousel .slick-prev {
        left: -15px;
    }
    
    .ct-event-loop-carousel .slick-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .ct-event-loop-carousel .slick-arrow {
        width: 35px;
        height: 35px;
    }
    
    .ct-event-loop-carousel .slick-arrow:before {
        font-size: 16px;
    }
    
    .ct-event-loop-carousel .slick-prev {
        left: -10px;
    }
    
    .ct-event-loop-carousel .slick-next {
        right: -10px;
    }
    
    .ct-event-loop-carousel .slick-dots {
        bottom: -30px;
    }
    
    .ct-event-loop-carousel .slick-dots li button {
        width: 8px;
        height: 8px;
    }
}

/* Loading State */
.ct-event-loop-carousel-wrapper.loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-event-loop-carousel-wrapper.loading:before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fix for Elementor Editor */
.elementor-editor-active .ct-event-loop-carousel .slick-arrow {
    display: flex !important;
}