.service-sec {
    padding: 171px 0 152px;
    position: relative;
    overflow: hidden;
}
.service-sec.bg-bgcolor-tow {
    padding: 86px 0;
}
.service-sec.bg-bgcolor-tow .service-box {
    background-color: var(--white);
}
.service-sec.bg-bgcolor-tow::after {
    opacity: 1;
}
.service-sec::after {
    position: absolute;
    width: 1397px;
    height: 1667px;
    background-image: url(../images/jpgs/popup-sec-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    pointer-events: none;
    right: -153px;
    top: -72px;
    opacity: 0.1;
}
.service-box {
    padding: 63px 75px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    z-index: 1;
    position: relative;
    align-items: center;
    min-height: 273px;
}
.service-box .icon {
    position: absolute;
    left: 50%;
    transform: translateX(-116px);
    width: 116px;
    transition: all 0.5s ease-in-out;
}
.service-box .icon img {
    width: 100%;
    height: 100%;
}
.service-box:hover .icon {
    left: calc(100% - 240px) !important;
    width: 140px;
    height: 140px;
    transform: rotate(180deg);
}
.service-box:hover .icon {
    margin-left: auto;
}
.service-box .text-sec {
    max-width: 623px;
}
.service-sec.bg-primary .text-sec h3 {
    color: var(--white);
}
.service-box .text-sec h3 {
    font-size: 20px;
    color: var(--body-text-color);
    margin-bottom: 28px;
    font-weight: bold;
}
.service-sec.bg-primary .text-sec p {
    color: var(--white);
}
.service-box .text-sec p {
    color: var(--body-text-color);
}
.service-box .text-wrap {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.service-box:hover .text-wrap {
    max-height: 200px;
}
.service-sec .service-box + .service-box {
    margin-top: 29px;
}

@media (min-width: 1231px) and (max-width: 1599px) {
}

@media (min-width: 992px) and (max-width: 1230px) {
    .service-box:hover .icon,
    .service-box .icon {
        min-width: 80px;
        height: auto;
        position: relative;
        left: auto;
        transform: translateX(0);
    }
    .service-box:hover .icon {
        left: 0 !important;
    }
}

@media (max-width: 991px) {
}

@media (min-width: 768px) and (max-width: 991px) {
    .service-box .icon {
        min-width: 80px;
        position: relative;
        left: 105px !important;
    }
    .service-box:hover .icon {
        left: 0 !important;
    }
    .service-box:hover .text-wrap {
        max-height: 690px;
    }
}

@media (max-width: 767px) {
    .service-sec.bg-bgcolor-tow,
    .service-sec {
        padding: 55px 0;
    }
    .service-box {
        padding: 49px 30px;
        flex-direction: column;
    }
    .service-box .text-sec h3 {
        margin-bottom: 0;
        font-weight: 500;
        font-size: 24px;
    }
    .service-box:hover .text-wrap {
        max-height: 430px;
    }
    .service-box:hover .icon {
        left: 0 !important;
    }
    .service-box {
        justify-content: center;
        flex-direction: row;
        border-radius: 15px;
        min-height: 187px;
    }
    .service-box .text-sec {
        max-width: 203px;
    }
    .service-box:hover {
        justify-content: flex-end;
        align-items: flex-end;
        gap: 30px;
        flex-direction: column;
    }
    .service-box:hover .text-sec {
        max-width: none;
    }
    .service-box:hover .text-sec h3 {
        margin-bottom: 59px;
    }
    .service-box:hover .icon,
    .service-box .icon {
        width: 58px;
        height: 58px;
        position: relative;
    }
    .service-sec::after {
        display: none;
    }

    .service-sec.bg-bgcolor-tow .service-box {
        flex-direction: row-reverse;
        position: relative;
    }
    .service-box .icon {
        position: relative;
        left: 0;
        transform: translateX(0);
    }
}
