/* =====================================================
   SDO Service Card Widget — v1.1.0
   ===================================================== */

/* ── Card wrapper ── */
.sdo-sc-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
    direction: rtl;
    text-align: right;
}

.sdo-sc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.13);
}

/* Full-card link overlay */
.sdo-sc-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}

/* ── Icon Wrapper ── */
.sdo-sc-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: #eef2fb;
    border-radius: 16px;
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sdo-sc-icon-wrap i,
.sdo-sc-icon-wrap svg {
    font-size: 28px;
    color: #2563eb;
    fill: #2563eb;
    transition: color 0.3s ease, fill 0.3s ease;
    line-height: 1;
    display: block;
}

/* Default hover for icon (overrideable from Elementor) */
.sdo-sc-card:hover .sdo-sc-icon-wrap {
    background-color: #1e3a8a;
    transform: scale(1.1);
}

.sdo-sc-card:hover .sdo-sc-icon-wrap i,
.sdo-sc-card:hover .sdo-sc-icon-wrap svg {
    color: #ffffff;
    fill: #ffffff;
}

/* Position variants */
.sdo-sc-icon-pos-top-right .sdo-sc-icon-wrap {
    float: right;
    margin-right: 0;
    margin-left: 0;
}

.sdo-sc-icon-pos-top-left .sdo-sc-icon-wrap {
    float: left;
}

.sdo-sc-icon-pos-top-center .sdo-sc-icon-wrap {
    display: flex;
    margin-right: auto;
    margin-left: auto;
}

/* Clear after float */
.sdo-sc-icon-pos-top-right::after,
.sdo-sc-icon-pos-top-left::after {
    content: '';
    display: table;
    clear: both;
}

/* ── Title ── */
.sdo-sc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    clear: both;
    transition: color 0.3s ease;
}

/* ── Description ── */
.sdo-sc-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 20px 0;
    transition: color 0.3s ease;
}

/* ── Tooltip / How it works box ── */
.sdo-sc-tooltip-box {
    background-color: #f0f4fd;
    border-right: 4px solid #2563eb;
    border-radius: 10px;
    padding: 14px 16px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sdo-sc-tooltip-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.sdo-sc-tooltip-label i,
.sdo-sc-tooltip-label svg {
    font-size: 13px;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    fill: #2563eb;
    color: #2563eb;
}

.sdo-sc-tooltip-text {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.7;
    margin: 0;
}

.sdo-sc-tooltip-box + .sdo-sc-tooltip-box {
    margin-top: 14px;
}

/* ── Editor preview fix ── */
.elementor-editor-active .sdo-sc-card {
    position: relative;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .sdo-sc-card {
        padding: 24px 20px;
    }

    .sdo-sc-icon-wrap {
        width: 58px;
        height: 58px;
    }

    .sdo-sc-icon-wrap i,
    .sdo-sc-icon-wrap svg {
        font-size: 22px;
    }
}
