/* 모든 스타일은 css 충돌방지를 위해 .page3을 기준으로 작성 하시면 됩니다. 예) .page3 .box {} */
.page3 {}

.page3 ul {
    display: flex;
    justify-content: space-between;
}

.page3 ul li {
    width: 23%;
    position: relative;
    border-top: 3px solid #000;
    border-bottom: 1px solid #ccc;
    padding-bottom: 50px;
}

.page3 ul li span {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 40px;
    text-align: center;
    line-height: 60px;
    letter-spacing: 3px;
    font-weight: 900;
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    background: #2c2d87;
}

.page3 ul li p {
    width: 100%;
    text-align: Center;
    font-size: 24px;
    font-weight: 600;
    padding-top: 20px;
    color: #000;
}

.page3 ul li img {
    width: 100%;
}

@media screen and (max-width:799px) {
    .page3 ul {
        flex-wrap: wrap;
    }

    .page3 ul li {
        width: 48%;
        padding-bottom: 20px;
        border-bottom: 1px solid #e4e4e4;
    }

    .page3 ul li:nth-child(n+3) {
        margin-top: 30px;
    }

    .page3 ul li span {
        top: -15px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        letter-spacing: 2px;
        font-size: 10px;
    }

    .page3 ul li p {
        font-size: 16px;
        font-weight: 500;
    }

}