@charset "utf-8";

.main_project_latest{
    width:100%;
    padding:40px 0 20px;
}

.main_project_head{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:28px;
}

.main_project_tit{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:54px;
    padding:0 20px;
    border-radius:999px;
    background:cadetblue;
    color:#fff;
    font-size:24px;
    font-weight:700;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
}

.main_project_line{
    flex:1;
    height:2px;
    background:#2b3448;
}

.main_project_grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:26px;
}

.main_project_card{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:210px;
    padding:34px 34px 30px;
    border:1px solid #e5d9cc;
    border-radius:28px;
    background:#fff;
    text-decoration:none;
    transition:all .25s ease;
    box-sizing:border-box;
}

.main_project_card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    border-color:#d4b48a;
}

.main_project_badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    align-self:flex-start;
    min-height:40px;
    padding:0 16px;
    margin-bottom:24px;
    border:1px solid #edc287;
    border-radius:12px;
    color:#c79653;
    font-size:15px;
    font-weight:700;
    background:#fff8ef;
    box-sizing:border-box;
}

.main_project_subject{
    display:block;
    margin-bottom:16px;
    color:#162b52;
    font-size:20px;
    font-weight:800;
    line-height:1.45;
    letter-spacing:-0.5px;
    word-break:keep-all;
}

.main_project_desc{
    margin:0;
    color:#6f7c91;
    font-size:16px;
    line-height:1.7;
    word-break:keep-all;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.main_project_empty{
    grid-column:1 / -1;
    padding:60px 20px;
    border:1px solid #e5d9cc;
    border-radius:28px;
    background:#fff;
    text-align:center;
    color:#666;
    font-size:16px;
}

/* 태블릿 */
@media (max-width:1200px){
    .main_project_grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .main_project_subject{
        font-size:18px;
    }

    .main_project_desc{
        font-size:15px;
    }
}

/* 모바일 */
@media (max-width:768px){
    .main_project_latest{
        padding:20px 0 10px;
    }

    .main_project_head{
        gap:12px;
        margin-bottom:20px;
    }

    .main_project_tit{
        height:42px;
        padding:0 14px;
        font-size:16px;
    }

    .main_project_line{
        height:1px;
    }

    .main_project_grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .main_project_card{
        min-height:auto;
        padding:24px 20px;
        border-radius:20px;
    }

    .main_project_badge{
        min-height:34px;
        padding:0 12px;
        margin-bottom:16px;
        font-size:13px;
        border-radius:10px;
    }

    .main_project_subject{
        margin-bottom:10px;
        font-size:17px;
        line-height:1.4;
    }

    .main_project_desc{
        font-size:14px;
        line-height:1.6;
    }
}