/* =========================================================
   Swiper Services Widget — Frontend Styles
   ========================================================= */

.ssw-wrapper {
    position: relative;
    padding: 0 48px; /* room for arrows */
    box-sizing: border-box;
}

/* ── Swiper container ── */
.ssw-wrapper .ssw-swiper {
    overflow: hidden;
    width: 100%;
}

/* ── Individual slide ── */
.ssw-slide {
    display: flex;
    flex-direction: column;
    height: auto;
}

/* ── Image block ── */
.ssw-slide-image {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 4px;
    overflow: hidden;
    /* padding-top is set inline to control aspect ratio */
    transition: transform 0.4s ease;
}

.ssw-slide-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.ssw-slide:hover .ssw-slide-image {
    transform: scale(1.02);
}

.ssw-slide:hover .ssw-slide-image::after {
    background: rgba(0, 0, 0, 0.12);
}

/* ── Text content ── */
.ssw-slide-content {
    padding-top: 20px;
}

.ssw-slide-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ssw-slide-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B3A3A;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.ssw-slide-description {
    font-size: 15px;
    line-height: 1.65;
    color: #555555;
    margin: 0;
}

/* ── Navigation buttons ── */
.ssw-btn-prev,
.ssw-btn-next {
    position: absolute;
    background-color: transparent !important;
    top: 50%;
    transform: translateY(-50%);
    /* vertically centre relative to the image, not the full card */
    margin-top: -30px; /* rough offset for text below image */
    z-index: 10;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #8B3A3A;
    font-size: 80px !important;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssw-btn-prev {
    left: -30px;
}

.ssw-btn-next {
    right: -30px;
}

.ssw-btn-prev:hover,
.ssw-btn-next:hover {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.15);
}

.ssw-btn-prev:focus,
.ssw-btn-next:focus {
    outline: 2px solid #8B3A3A;
    outline-offset: 2px;
    border-radius: 2px;
}

.ssw-btn-prev.swiper-button-disabled,
.ssw-btn-next.swiper-button-disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* ── Pagination dots ── */
.ssw-wrapper .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 24px;
    text-align: center;
}

.ssw-wrapper .swiper-pagination-bullet {
    background: #8B3A3A;
    opacity: 0.3;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
    transition: opacity 0.25s, transform 0.25s;
    cursor: pointer;
}

.ssw-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
}

/* ── No arrows (when hidden) ── */
.ssw-wrapper:not(:has(.ssw-btn-prev)) {
    padding: 0;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
    .ssw-wrapper {
        padding: 0 36px;
    }
    .ssw-slide-title {
        font-size: 13px;
    }
    .ssw-slide-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ssw-wrapper {
        padding: 0 28px;
    }
}
