/* Swiper Custom Styles for Penberthy Design */

/* Make all swiper slides inherit owl-carousel styling */
.swiper {
    width: 100%;
    height: auto;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

/* Ensure images fit properly in slides */
.swiper-slide img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* For single item carousels */
.owl-item-1 .swiper-slide img,
.owl-item-1-text .swiper-slide img,
.owl-testimonial-default .swiper-slide img,
.slider .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Navigation buttons styling to match old owl-carousel */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 0;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    content: '';
    display: none;
}

.swiper-button-next i,
.swiper-button-prev i {
    font-size: 18px;
    line-height: 40px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(1, 193, 193, 0.9);
}

/* Position buttons like old owl-carousel */
.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

/* Pagination styling */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #01c1c1;
}

/* Auto-height support */
.swiper.swiper-autoheight,
.swiper.swiper-autoheight .swiper-wrapper {
    height: auto;
}

/* Multi-item carousels */
.owl-item-2 .swiper-slide,
.owl-item-3 .swiper-slide,
.owl-item-4 .swiper-slide,
.owl-item-5 .swiper-slide,
.owl-item-6 .swiper-slide {
    height: auto;
}

.owl-item-2 .swiper-slide img,
.owl-item-3 .swiper-slide img,
.owl-item-4 .swiper-slide img,
.owl-item-5 .swiper-slide img,
.owl-item-6 .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Testimonial carousel specific */
.owl-testimonial-default .swiper-slide {
    padding: 20px;
}

/* Hero slider (already styled inline but adding responsive support) */
.hero-swiper {
    min-height: 400px;
}

@media (max-width: 767px) {
    .hero-swiper {
        min-height: 300px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .swiper-button-next i,
    .swiper-button-prev i {
        font-size: 14px;
        line-height: 30px;
    }
}
