/* ================================================
   Service Card Widget — Frontend Styles
   ================================================ */

.scw-card-main {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

/* Hover image layer */
.scw-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;            /* animated by JS */
    height: 100%;
    overflow: hidden;
    z-index: 1;
    will-change: width;
}

.scw-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.scw-image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Icon box */
.scw-icon-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 95px;          /* overridden by widget control */
    height: 100%;
    z-index: 2;
    background: #cfcfcf;  /* overridden by widget control */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Icon / image inside the box */
.scw-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.scw-icon i {
    display: block;
    line-height: 1;
}

.scw-icon svg {
    display: block;
}

.scw-icon img {
    display: block;
    object-fit: contain;
}
