/* ── Outer wrapper ────────────────────────────────────────────── */
.swc-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* ── Swiper ───────────────────────────────────────────────────── */
.swc-swiper {
    width: 100%;
    padding-bottom: 44px;
    overflow: visible;
}

/* ── Each slide ───────────────────────────────────────────────── */
.swc-card {
    width: 300px;
    max-width: 90vw;
    overflow: hidden;
    cursor: grab;
    border-radius: 12px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.swc-card:not(.swiper-slide-active) {
    opacity: 0.5;
}

/* ── Card inner (template content) ────────────────────────────── */
.swc-card-inner {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border-radius: inherit;
    overflow: hidden;
}

/* ── Empty slide placeholder — matches Elementor Pro ──────────── */
.swc-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 200px;
    background: #8c8c8c;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.02em;
    padding: 24px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.swc-card-placeholder svg {
    opacity: 0.4;
}

.swc-card-placeholder:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

/* ── Navigation arrows — Elementor Pro style ──────────────────── */
.swc-wrap .swiper-button-prev,
.swc-wrap .swiper-button-next {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 25px;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.swc-wrap .swiper-button-prev::after,
.swc-wrap .swiper-button-next::after {
    font-size: inherit;
    font-weight: 700;
}

.swc-wrap .swiper-button-prev:hover,
.swc-wrap .swiper-button-next:hover {
    color: #ffffff;
}

.swc-wrap .swiper-button-prev.swiper-button-disabled,
.swc-wrap .swiper-button-next.swiper-button-disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* ── Pagination — Elementor Pro style ─────────────────────────── */
.swc-wrap .swiper-pagination {
    bottom: 0;
    position: relative;
    margin-top: 20px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.swc-wrap .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    margin: 0 4px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.swc-wrap .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.2);
}

/* ── Progress bar pagination ──────────────────────────────────── */
.swc-wrap .swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    height: 3px;
    border-radius: 2px;
    margin-top: 20px;
}

.swc-wrap .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #ffffff;
    border-radius: 2px;
}

/* ── Fraction pagination ──────────────────────────────────────── */
.swc-wrap .swiper-pagination-fraction {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Classic WP widget nav buttons ────────────────────────────── */
.swc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.25s ease;
}

.swc-nav-btn:hover {
    color: #ffffff;
}

.swc-btn-prev { left: 10px; }
.swc-btn-next { right: 10px; }

/* ── Card typography ──────────────────────────────────────────── */
.swc-card-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.swc-card-subtext {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media ( max-width: 767px ) {
    .swc-card { width: 260px; }

    .swc-wrap .swiper-button-prev,
    .swc-wrap .swiper-button-next {
        font-size: 18px;
        width: 30px;
        height: 30px;
    }
}

@media ( max-width: 480px ) {
    .swc-card { width: 220px; }
}