.douxl-service-cards-widget,
.douxl-service-cards-widget * {
    box-sizing: border-box;
}

.douxl-service-cards-header {
    text-align: center;
    margin-bottom: 36px;
}

.douxl-service-section-title {
    margin: 0 0 14px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
}

.douxl-service-section-subtitle {
    max-width: 620px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: #666;
}

.douxl-service-cards-row {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.douxl-service-card {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    cursor: pointer;
    transition: flex-grow .45s ease, flex-basis .45s ease, transform .35s ease, box-shadow .35s ease;
}

.douxl-service-card.is-active {
    flex-grow: 2.45;
}

.douxl-service-card-content {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    overflow: hidden;
    transition: flex-basis .45s ease, width .45s ease, opacity .35s ease;
    opacity: 0;
}

.douxl-service-card.is-active .douxl-service-card-content {
    flex: 0 0 56%;
    width: 56%;
    opacity: 1;
}

.douxl-service-card-content-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 250px;
}

.douxl-service-card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 42px;
    line-height: 1;
}

.douxl-service-card-icon svg {
    width: 44px;
    height: 44px;
    display: block;
}

.douxl-service-card-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.douxl-service-card-desc {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.6;
}

.douxl-service-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    font-size: 17px;
    line-height: 1;
    font-weight: 600;
    transition: background-color .25s ease, transform .25s ease;
}

.douxl-service-card-button:hover {
    transform: translateY(-1px);
}

.douxl-service-card-button-icon,
.douxl-service-card-button-icon i,
.douxl-service-card-button-icon svg {
    width: 22px;
    height: 22px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.douxl-service-card-image-wrap {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.douxl-service-card-image {
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.douxl-service-card:hover .douxl-service-card-image,
.douxl-service-card.is-active .douxl-service-card-image {
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    .douxl-service-cards-row {
        flex-direction: column;
    }

    .douxl-service-card,
    .douxl-service-card.is-active {
        flex: none;
        width: 100%;
        min-height: 260px;
    }

    .douxl-service-card-content,
    .douxl-service-card.is-active .douxl-service-card-content {
        flex: 0 0 56%;
        width: 56%;
        opacity: 1;
    }

    .douxl-service-card-content-inner {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .douxl-service-section-title {
        font-size: 28px;
    }

    .douxl-service-section-subtitle {
        font-size: 15px;
    }

    .douxl-service-card,
    .douxl-service-card.is-active {
        flex-direction: column;
        height: auto !important;
    }

    .douxl-service-card-content,
    .douxl-service-card.is-active .douxl-service-card-content {
        width: 100%;
        flex: none;
        opacity: 1;
    }

    .douxl-service-card-image-wrap {
        height: 220px;
        flex: none;
    }
}
