/* PS Banner Slider Styles */
.ps-banner-slider-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.ps-banner-slider {
    width: 100%;
    overflow: hidden;
}

.ps-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.ps-slide-image {
    display: block;
    width: 100%;
    height: 100%;
}

.ps-slide-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Adaptive height styles */
.ps-banner-slider[data-adaptive-height="true"] .ps-slide-image img {
    object-fit: contain;
    object-position: center;
}

.ps-banner-slider[data-adaptive-height="false"] .ps-slide-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ps-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Smooth height transitions for adaptive height */
.ps-banner-slider[data-adaptive-height="true"] .splide__track {
    transition: height 0.3s ease;
}

/* Custom arrow styles */
.ps-banner-slider .splide__arrow {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 66px;
    height: 66px;
    line-height: 66px;
    border-radius: 0;
    box-shadow: 20px 20px 60px #58667d5e;
}

.ps-banner-slider .splide__arrow:hover {
    background: rgba(255, 255, 255, 0.8);
}

.ps-banner-slider .splide__arrow svg {
    fill: #007aff;
    width: 20px;
    height: 20px;   
}

/* Custom pagination styles */
.ps-banner-slider .splide__pagination {
    bottom: 10px;
    z-index: 2;
}

.ps-banner-slider .splide__pagination__page {
    background:#000;
    opacity: .2;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    transition: width .4s ease-in-out;
    border-radius: 100px;
    transform: scale(1);
}

.ps-banner-slider .splide__pagination__page.is-active {
    background: #007aff;
    width: 24px;
    opacity: 1;
    transform: scale(1);
    border-radius: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ps-banner-slider .splide__arrow {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
    }
    .ps-banner-slider .splide__arrow:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

/* Loading state */
.ps-banner-slider:not(.is-initialized) {
    opacity: 0.5;
}

.ps-banner-slider.is-initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Ensure proper aspect ratio maintenance */
.ps-banner-slider[data-adaptive-height="true"] .splide__slide {
    height: auto !important;
}

.ps-banner-slider[data-adaptive-height="true"] .ps-slide-content {
    height: auto;
}
