/**
 * One Slider Widget Styles
 */

/* Slider Wrapper */
.oe-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slider Item */
.oe-slider-item {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

/* Slider Overlay */
.oe-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Content Wrapper */
.oe-slider-content-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    z-index: 2;
    width: 100%;
}

/* Boxed Container - Follow Elementor Container Width */
.oe-slider-content-wrapper.oe-container-boxed {
    padding-left: max(20px, calc((100% - var(--container-max-width, 1140px)) / 2));
    padding-right: max(20px, calc((100% - var(--container-max-width, 1140px)) / 2));
}

/* Full Width Container */
.oe-slider-content-wrapper.oe-container-full {
    padding-left: 20px;
    padding-right: 20px;
}

/* Horizontal Alignment */
.oe-slider-content-wrapper.oe-align-left {
    justify-content: flex-start;
}

.oe-slider-content-wrapper.oe-align-center {
    justify-content: center;
    text-align: center;
}

.oe-slider-content-wrapper.oe-align-right {
    justify-content: flex-end;
    text-align: right;
}

/* Vertical Alignment */
.oe-slider-content-wrapper.oe-valign-top {
    align-items: flex-start;
}

.oe-slider-content-wrapper.oe-valign-middle {
    align-items: center;
}

.oe-slider-content-wrapper.oe-valign-bottom {
    align-items: flex-end;
}

/* Content Inner - For boxed alignment */
.oe-slider-content-inner {
    width: 100%;
    display: flex;
}

.oe-align-left .oe-slider-content-inner {
    justify-content: flex-start;
}

.oe-align-center .oe-slider-content-inner {
    justify-content: center;
}

.oe-align-right .oe-slider-content-inner {
    justify-content: flex-end;
}

/* Content */
.oe-slider-content {
    width: 100%;
}

/* Heading */
.oe-slider-heading {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    font-size: 48px;
}

/* Description */
.oe-slider-description {
    margin: 0;
    line-height: 1.6;
    font-size: 18px;
}

/* Buttons Container */
.oe-slider-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.oe-align-center .oe-slider-buttons {
    justify-content: center;
}

.oe-align-right .oe-slider-buttons {
    justify-content: flex-end;
}

/* Button Base Styles */
.oe-slider-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
}

.oe-slider-button svg,
.oe-slider-button .oe-button-svg-icon {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.oe-slider-button i {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.oe-slider-button:hover svg,
.oe-slider-button:hover .oe-button-svg-icon,
.oe-slider-button:hover i {
    transform: translateX(4px);
}

.oe-slider-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Navigation Arrows */
.oe-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.oe-slider-arrow:hover {
    opacity: 0.8;
}

.oe-slider-arrow-prev {
    left: 20px;
}

.oe-slider-arrow-next {
    right: 20px;
}

.oe-slider-arrow svg {
    width: 100%;
    height: 100%;
}

.oe-slider-arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pagination */
.swiper-pagination {
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 10;
}

.swiper-pagination-bullet {
    display: inline-block;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-pagination-bullet:hover {
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .oe-slider-heading {
        font-size: 36px;
    }
    
    .oe-slider-description {
        font-size: 16px;
    }
    
    .oe-slider-button {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .oe-slider-heading {
        font-size: 28px;
    }
    
    .oe-slider-description {
        font-size: 14px;
    }
    
    .oe-slider-button {
        font-size: 13px;
        padding: 10px 20px !important;
    }
    
    .oe-slider-arrow-prev {
        left: 10px;
    }
    
    .oe-slider-arrow-next {
        right: 10px;
    }
    
    .oe-slider-buttons {
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .oe-slider-heading {
        font-size: 24px;
    }
    
    .oe-slider-description {
        font-size: 13px;
    }
    
    .oe-slider-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .oe-slider-button {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Effects */
.swiper-slide-active .oe-slider-heading {
    animation: slideInUp 0.8s ease-out;
}

.swiper-slide-active .oe-slider-description {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.swiper-slide-active .oe-slider-buttons {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.oe-slider-wrapper.loading {
    min-height: 400px;
    background: #f5f5f5;
}

/* Accessibility */
.oe-slider-arrow:focus-visible,
.oe-slider-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
