/* RentaWP — Slider CSS */

.rw-hero-slider {
    width: 100%;
    height: min(90vh, 640px);
    position: relative;
    background: #111;
}

.swiper-slide.rw-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rw-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 100%);
}

.rw-slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}

.rw-slide-caption {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    margin-bottom: 16px;
    line-height: 1.2;
}

.rw-slide-sub {
    font-size: clamp(.95rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.9);
    margin-bottom: 32px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Override Swiper button colors */
.rw-hero-slider .swiper-button-prev,
.rw-hero-slider .swiper-button-next {
    color: rgba(255,255,255,.8);
    background: rgba(0,0,0,.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background .2s;
}

.rw-hero-slider .swiper-button-prev:hover,
.rw-hero-slider .swiper-button-next:hover {
    background: rgba(0,0,0,.6);
}

.rw-hero-slider .swiper-button-prev::after,
.rw-hero-slider .swiper-button-next::after {
    font-size: 16px;
}

.rw-hero-slider .swiper-pagination-bullet {
    background: rgba(255,255,255,.6);
    opacity: 1;
}

.rw-hero-slider .swiper-pagination-bullet-active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Mobile: enforce 16:9 landscape so slider never goes portrait */
@media (max-width: 767px) {
    .rw-hero-slider {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .rw-slide-sub {
        display: none;
    }
}
