.yichen-service-customization {
    padding: var(--component-gap) 0;
    background: #e2e2e2;
}

.yichen-service-customization__grid {
    display: flex;
    gap: 30px;
}

.yichen-service-customization__card {
    position: relative;
    flex: 1;
    overflow: hidden;

    cursor: pointer;
}

.yichen-service-customization__media {
    width: 100%;
}

.yichen-service-customization__img {
    width: 100%;
    height: auto;
    aspect-ratio: 380 / 764;
    object-fit: cover;
}

.yichen-service-customization__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    min-height: 250px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.yichen-service-customization__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0.65;
    z-index: 0;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.yichen-service-customization__icon,
.yichen-service-customization__text {
    z-index: 10;
}

.yichen-service-customization__icon {
    height: 100px;
    width: 100px;
    margin-top: 22%;

    transition: transform 0.3s ease;
}

.yichen-service-customization__text {
    margin-top: 20px;
    text-align: center;
    width: 64%;
}

.yichen-service-customization__title {
    color: #fff;
    font-size: var(--title-size-h3);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    transition: font-size 0.3s ease;
}

.yichen-service-customization__line {
    margin-top: 4px;
    color: #fff;
    font-size: var(--text-size);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.yichen-service-customization__content:hover::before {
    background-color: none;
    opacity: 0;
}


.yichen-service-customization__content:hover .yichen-service-customization__text {
    width: 76.8%;
}


.yichen-service-customization__content:hover .yichen-service-customization__icon {
    transform: scale(1.2);
}

.yichen-service-customization__content:hover .yichen-service-customization__title {
    font-size: calc(var(--title-size-h3) * 1.2);
}


@media screen and (max-width: 1280px) {
    .yichen-service-customization__icon {
        height: 86px;
        width: 86px;
    }
}

@media screen and (max-width: 992px) {
    .yichen-service-customization__icon {
        height: 72px;
        width: 72px;
    }

    .yichen-service-customization__text{
        margin-top: 14px;
    }

}

@media screen and (max-width: 768px) {
    .yichen-service-customization__grid {
        flex-direction: column;
        gap: 12px;
    }

    .yichen-service-customization__content{
      position: unset;
        left: auto;
        right: 0;
        width: 100%;
        height: 100%;
        padding: 10px 0;
        min-height: auto;
        justify-content: center;
        background-color: var(--color-primary);
        opacity: 0.65;
    }
    .yichen-service-customization__content::before {
        display: none;
    }
    .yichen-service-customization__icon {
        margin-top: initial;
        height: 58px;
        width: 58px;
    }

    .yichen-service-customization__img{
        aspect-ratio: 351 / 150;
    }

    .yichen-service-customization__text{
        margin-top: 8px;
    }
    .yichen-service-customization__line{
        margin-top: 0px;
    }
}

@media screen and (max-width: 576px) {
    .yichen-service-customization__icon {
        height: 44px;
        width: 44px;
    }
}