@import url("./common.css");

.title-talent {
    position: relative;
    text-align: center;
}

.title-talent:after {
    content: '';
    position: absolute;
    top: 70px;
    left: 50%;
    width: 1px;
    height: 97px;
    background-color: #000;
}

.title-desc {
    font-weight: 500;
    font-size: 38px;
    color: #222;
}

.title-main {
    margin-top: 157px;
    font-weight: 800;
    font-size: 50px;
    line-height: 1.4;
    color: #222;
}

.title-main>span {
    color: #117D8D;
}

.talent-grid {
    display: flex;
    flex-wrap: wrap;
    /* gap: 0 145px; */
    margin: 80px auto 0;
    padding-bottom: 118px;
    width: 1130px;
    max-width: 100%;
}

.talent-card {
    position: relative;
    /* flex: 0 0 50%; */
    margin-bottom: 89px;
}

.talent-card:nth-child(even) {
    margin-left: auto;
}

.talent-card:nth-child(even) {
    top: 118px;
}

.card-desc {
    font-weight: 500;
    font-size: 15px;
    color: #999;
}

.card-title {
    margin-top: 15px;
    font-weight: 800;
    font-size: 36px;
    line-height: 1.4;
    color: #222;
}

.talent-img {
    position: relative;
    margin-top: 40px;
}

.talent-img:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000080;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.talent-img:hover:after {
    opacity: 1;
}

.talent-hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.4;
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out 0.1s;
    z-index: 1;
}

.talent-img:hover .talent-hover-text {
    opacity: 1;
}

@media screen and (max-width: 1200px) {
    .talent-grid {
        padding: 0 30px;
        width: 100%;
    }

    .talent-card {
        /* flex: 0 1 calc(50% - 9px); */
        margin-bottom: 63px;
    }
}

@media screen and (max-width: 1044px) {
    .talent-card {
        flex: 0 1 calc(50% - 9px);

    }
}

/* 모바일 스타일 */
@media screen and (max-width: 768px) {
    .title-talent:after {
        top: 40px;
        height: 57px;
    }

    .title-desc {
        font-size: 18px;
    }

    .title-main {
        margin-top: 101px;
        font-size: 20px;
    }

    .talent-grid {
        gap: 0 18px;
        margin: 40px auto 0;
        padding: 0 35px 120px;
        width: 100%;
    }

    .talent-card {
        flex: 0 1 calc(50% - 9px);
        margin-bottom: 63px;
    }

    .talent-card:nth-child(even) {
        top: 120px;
    }

    .card-desc {
        font-size: 13px;
    }

    .card-title {
        margin-top: 7px;
        font-size: 20px;
    }

    .talent-img {
        margin-top: 20px;
    }

    .talent-hover-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .talent-grid {
        padding: 0 35px 0px;
    }

    .talent-card {
        flex: 0 0 100%;
        margin-bottom: 48px;
    }

    .talent-card:nth-child(even) {
        top: 0;
    }

    .talent-img {
        height: 218px;
        overflow: hidden;
    }

    .talent-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        
    }
    .talent-img:after{
        top:50px;
    }
    .talent-img:hover:after{
        top:0;
    }
    .talent-hover-text{
        margin-top:50px;
    }
    .talent-img:hover .talent-hover-text{
        margin-top:0px;
    }
}