/* ═══════════════════════════════════════════════════════
   Custom Service Carousel  v2.2
═══════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────── */
.csc-carousel-wrapper {
    position: relative;
    padding-bottom: 48px;
}

/* ── Card ────────────────────────────────────────────── */
.csc-card {
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,.07);
    height: 100%;
    box-sizing: border-box;
    transition: transform .3s ease, box-shadow .3s ease;
}
.csc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.13);
}

/* ── Link wrapper ────────────────────────────────────── */
.csc-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.csc-card-link:hover { color: inherit; text-decoration: none; }

/* ── Outer border ring ───────────────────────────────── */
/*
   .csc-img-outer is the ONLY element that should carry
   border-radius + border. Its size is controlled by the
   Elementor selector on image_size (width/height).
   overflow:hidden is intentionally NOT here — it lives
   only on .csc-img-swiper so the border still shows.
*/
.csc-img-outer {
    width: 160px;        /* overridden by widget selector */
    height: 160px;       /* overridden by widget selector */
    margin: 0 auto 14px;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 0px solid #ddd; /* default; overridden by selectors */
}

/* ── Inner Swiper (clips images to shape) ────────────── */
.csc-img-swiper {
    /* Fill the outer ring completely */
    position: absolute;
    inset: 0;                 /* top/right/bottom/left: 0 */
    width: 100% !important;   /* override Swiper inline style */
    height: 100% !important;
    overflow: hidden;         /* THIS is what clips the image */
}
.csc-img-swiper .swiper-wrapper { height: 100%; }
.csc-img-swiper .swiper-slide   { height: 100%; }

.csc-img-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position:center center;
    display: block;
    /* NO border-radius here — outer ring handles the shape */
}

/* subtle zoom on hover */
.csc-card:hover .csc-img-swiper img {
    transform: scale(1.05);
    transition: transform .35s ease;
}

/* ── Image inner dots ────────────────────────────────── */
.csc-img-dots {
    bottom: 5px !important;
    z-index: 10;
}
.csc-img-dots .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,.65);
    opacity: 1;
}
.csc-img-dots .swiper-pagination-bullet-active {
    background: #fff;
}

/* ── Title ───────────────────────────────────────────── */
.csc-card h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

/* ── Main swiper shell ───────────────────────────────── */
.csc-swiper { padding-bottom: 36px !important; }

/* ── Main pagination dots ────────────────────────────── */
.csc-main-dots {
    bottom: 2px !important;
}
.csc-main-dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    transition: background .2s;
}
.csc-main-dots .swiper-pagination-bullet-active {
    background: #333;
}

/* ── Custom arrow buttons ────────────────────────────── */
/*
   We suppress Swiper's default ::after pseudo-element icon
   and replace with our own rendered icon inside .csc-arrow.
*/
.csc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    /* override Swiper's absolute positioning values */
    top: 38%;
}
.csc-arrow:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* Hide Swiper's built-in arrow text */
.csc-arrow.swiper-button-prev::after,
.csc-arrow.swiper-button-next::after {
    content: '' !important;
    display: none !important;
}

/* Icon inside arrow */
.csc-arrow i,
.csc-arrow svg {
    font-size: 16px;
    width: 16px;
    color: #444;
    pointer-events: none;
}

/* Disabled state */
.csc-arrow.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}
