@charset "utf-8";

.latestNewsWrap{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.newsCardData{
    display:flex;
    flex-direction:column;
    position:relative;
    background:#fff;
    border:1px solid #e8e8e8;
    border-radius:18px;
    padding:30px;
    min-height:320px;
    box-sizing:border-box;
    text-decoration:none;
    overflow:hidden;
    transition:.25s;
}



.newsCardData:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.newsTop{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.newsCateName{
    font-size:15px;
    font-weight:700;
    letter-spacing:-0.3px;
}

.newsCardData.notice .newsCateName{
    color:#2f80ed;
}

.newsCardData.recruit .newsCateName{
    color:#e05d84;
}

.newsCardData.press .newsCateName{
    color:#4caf50;
}

.newsIcon{
    width:44px;
    height:44px;
    border-radius:12px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:17px;
    transition:.2s;
}

.newsCardData.notice .newsIcon{
    background:#4a7fe6;
}

.newsCardData.recruit .newsIcon{
    background:#e57293;
}

.newsCardData.press .newsIcon{
    background:#58a96d;
}

.newsCardData:hover .newsIcon{
    transform:scale(1.05);
}

.newsTitleText{
    color:#222;
    font-size:23px;
    font-weight:700;
    line-height:1.45;
    letter-spacing:-0.5px;
    height:68px;
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.newsContent{
    flex:1;
    margin-top:18px;
    color:#777;
    font-size:16px;
    line-height:1.8;
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.newsDateTime{
    margin-top:25px;
    padding-top:18px;
    border-top:1px solid #ececec;
    display:flex;
    align-items:center;
    gap:8px;
    color:#999;
    font-size:14px;
    font-weight:500;
}

.newsDateTime i{
    color:#bdbdbd;
    font-size:13px;
}

.noData{
    pointer-events:none;
}

.noData .newsTitleText{
    height:auto;
}

.noData .newsContent{
    flex:none;
    color:#999;
}

/* 태블릿 */
@media all and (max-width:1200px){

    .latestNewsWrap{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

}

/* 모바일 */
@media all and (max-width:768px){

    .latestNewsWrap{
        grid-template-columns:1fr;
    }

    .newsCardData{
        min-height:auto;
        padding:25px;
    }

    .newsTop{
        margin-bottom:18px;
    }

    .newsIcon{
        width:40px;
        height:40px;
        font-size:15px;
    }

    .newsTitleText{
        font-size:20px;
        height:auto;
    }

    .newsContent{
        font-size:15px;
    }

}