/* ===================================
   Custom Elementor Slider Pro - Styles
   =================================== */

/* Reset & Base */
.ces-pro-slider-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.ces-pro-slider-wrapper * {
    box-sizing: border-box;
}

/* Slider Container */
.ces-pro-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.ces-pro-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ces-pro-slide.ces-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Background */
.ces-pro-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay */
.ces-pro-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Content Container */
.ces-pro-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    padding: 60px 40px;
    margin: 0 auto;
    color: #fff;
}

/* Title */
.ces-pro-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #ffffff;
    animation: cesSlideUp 0.8s ease-out 0.2s both;
}

/* Description */
.ces-pro-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: #ffffff;
    opacity: 0.95;
    animation: cesSlideUp 0.8s ease-out 0.4s both;
}

/* Buttons Container */
.ces-pro-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: cesSlideUp 0.8s ease-out 0.6s both;
}

/* Button Base */
.ces-pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Button 1 (Primary) */
.ces-pro-btn-1 {
    background: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.ces-pro-btn-1:hover {
    background: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

/* Button 2 (Secondary) */
.ces-pro-btn-2 {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.ces-pro-btn-2:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Navigation Arrows */
.ces-pro-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.ces-pro-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.ces-pro-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.ces-prev {
    left: 30px;
}

.ces-next {
    right: 30px;
}

.ces-pro-arrow svg {
    width: 24px;
    height: 24px;
}

/* Pagination Dots */
.ces-pro-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.ces-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ces-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.ces-dot.ces-active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Slide Animation */
@keyframes cesSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset animation for inactive slides */
.ces-pro-slide:not(.ces-active) .ces-pro-title,
.ces-pro-slide:not(.ces-active) .ces-pro-description,
.ces-pro-slide:not(.ces-active) .ces-pro-buttons {
    opacity: 0;
    animation: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .ces-pro-content {
        max-width: 960px;
        padding: 50px 40px;
    }
    
    .ces-pro-title {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .ces-pro-slider-wrapper {
        height: 500px;
    }
    
    .ces-pro-content {
        max-width: 720px;
        padding: 40px 30px;
    }
    
    .ces-pro-title {
        font-size: 36px;
        margin-bottom: 18px;
    }
    
    .ces-pro-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .ces-pro-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
    
    .ces-pro-arrow {
        width: 45px;
        height: 45px;
    }
    
    .ces-prev {
        left: 20px;
    }
    
    .ces-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .ces-pro-slider-wrapper {
        height: 450px;
    }
    
    .ces-pro-content {
        padding: 30px 25px;
    }
    
    .ces-pro-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .ces-pro-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .ces-pro-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .ces-pro-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 24px;
    }
    
    .ces-pro-arrow {
        width: 40px;
        height: 40px;
    }
    
    .ces-pro-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .ces-prev {
        left: 15px;
    }
    
    .ces-next {
        right: 15px;
    }
    
    .ces-pro-dots {
        bottom: 30px;
        gap: 10px;
    }
    
    .ces-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .ces-pro-slider-wrapper {
        height: 400px;
    }
    
    .ces-pro-content {
        padding: 25px 20px;
    }
    
    .ces-pro-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .ces-pro-description {
        font-size: 14px;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    .ces-pro-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .ces-pro-arrow {
        width: 35px;
        height: 35px;
    }
    
    .ces-pro-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .ces-prev {
        left: 10px;
    }
    
    .ces-next {
        right: 10px;
    }
    
    .ces-pro-dots {
        bottom: 20px;
    }
}

@media (max-width: 400px) {
    .ces-pro-title {
        font-size: 22px;
    }
    
    .ces-pro-description {
        font-size: 13px;
    }
    
    .ces-pro-arrow {
        display: none;
    }
}

/* RTL Support */
[dir="rtl"] .ces-prev {
    left: auto;
    right: 30px;
}

[dir="rtl"] .ces-next {
    right: auto;
    left: 30px;
}

[dir="rtl"] .ces-prev svg {
    transform: scaleX(-1);
}

[dir="rtl"] .ces-next svg {
    transform: scaleX(-1);
}

/* Loading State */
.ces-pro-slider-wrapper.ces-loading {
    position: relative;
}

.ces-pro-slider-wrapper.ces-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cesRotate 0.8s linear infinite;
}

@keyframes cesRotate {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Accessibility */
.ces-pro-arrow:focus,
.ces-dot:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .ces-pro-arrow,
    .ces-pro-dots {
        display: none !important;
    }
    
    .ces-pro-slide {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
}