/* ============================================================
   Our Services Section — CEW Plugin
   Scoped to .cew-our-services — no global overrides
   ============================================================ */

/* ── FALLBACK CSS VARS (overridden per-instance by inline style) ── */
.cew-our-services {
    --os-accent:  #22c55e !important;
    --os-bg:      #ffffff !important;  
    --os-border:  #dde1e7 !important;
    --os-h-size:  35px !important;
    --description : #7c7c7c !important;
}

/* ── RESET ────────────────────────────────────────────────── */
.cew-our-services *,
.cew-our-services *::before,
.cew-our-services *::after {
    box-sizing: border-box;
}

/* ── WRAPPER ──────────────────────────────────────────────── */
.cew-our-services {
    background: var(--os-bg);
    width: 100%;
    overflow: hidden;
    position: relative;
}

.cew-our-services .cos-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 340px;
}

/* ── LEFT COLUMN ──────────────────────────────────────────── */
.cew-our-services .cos-left {
    flex: 0 0 38%;
    max-width: 38%;
    padding: 40px 48px 40px 0;
    position: relative;
}


.cew-our-services .cos-heading {
    color: black;
    font-size: var(--os-h-size);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px !important;
    padding: 0;
}

.cew-our-services .cos-sub {
    color: var(--description);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 32px !important;
    padding: 0;
}

.cew-our-services .cos-btn {
    display: inline-block;
    background: var(--e-global-color-0ef70c6);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.cew-our-services .cos-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── DOTS ─────────────────────────────────────────────────── */
.cew-our-services .cos-dots {
    display: flex;
    gap: 10px;
    margin-top: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.cew-our-services .cos-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #aaaaaa;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    padding: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.cew-our-services .cos-dot.active {
    background: var(--os-accent);
    border-color: var(--os-accent);
    transform: scale(1.2);
}

.cew-our-services .cos-dot:focus-visible {
    outline: 2px solid var(--os-accent);
    outline-offset: 2px;
}

/* ── RIGHT / SLIDER ───────────────────────────────────────── */
.cew-our-services .cos-right {
    flex: 1 1 62%;
    min-width: 0;
    position: relative;
}

.cew-our-services .cos-slider-outer {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    padding-top:20px ;
}

.cew-our-services .cos-slider-outer:active {
    cursor: grabbing;
}

.cew-our-services .cos-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── CARD ─────────────────────────────────────────────────── */
.cew-our-services .cos-card {
    /* width set dynamically by JS based on data-visible */
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #d2d2d2;
    border-radius: 14px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

/*.cew-our-services .cos-card:hover {*/
/*    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);*/
/*    transform: translateY(-2px);*/
/*}*/

.cew-our-services .cos-card-top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.cew-our-services .cos-icon-wrap {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cew-our-services .cos-icon-wrap i,
.cew-our-services .cos-icon-wrap svg {
    font-size: 22px !important;
    width: 22px;
    height: 22px;
}

.cew-our-services .cos-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 !important;
    padding: 0;
    padding-top: 6px;
}

.cew-our-services .cos-card-desc {
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    line-height: 1.7;
    margin: 0 0 24px !important;
    flex-grow: 1;
}

.cew-our-services .cos-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #000000 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.cew-our-services .cos-learn-more:hover {
    gap: 9px;
}

.cew-our-services .cos-arrow {
    font-size: 18px;
    line-height: 1;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cew-our-services .cos-left {
        flex: 0 0 42%;
        max-width: 42%;
        padding-right: 32px;
    }
}

@media (max-width: 768px) {
    .cew-our-services .cos-wrap {
        flex-direction: column;
        gap: 32px;
    }

    .cew-our-services .cos-left {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 32px 0 0;
        text-align: center;
    }

    .cew-our-services .cos-left::after {
        display: none;
    }

    .cew-our-services .cos-dots {
        justify-content: center;
    }

    .cew-our-services .cos-right {
        flex: 0 0 100%;
        width: 100%;
    }

    .cew-our-services .cos-heading {
        font-size: clamp(32px, 8vw, 48px) !important;
    }

    /* On mobile, always show 1 card + peek */
    .cew-our-services .cos-card {
        flex: 0 0 85vw !important;
    }
}
