/* =====================================================
   NSCARE EVENT - MAIN LATEST
===================================================== */

.nscare-event-latest {
    width: 100%;
    box-sizing: border-box;
}


/* =====================================================
   제목
===================================================== */

.nscare-event-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}


.nscare-event-heading {
    min-width: 0;
}


.nscare-event-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #16a05d;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .06em;
}


.nscare-event-heading h2 {
    margin: 0;
    color: #1d2922;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.8px;
}


.nscare-event-heading p {
    margin: 5px 0 0;
    color: #7c8680;
    font-size: 12px;
    line-height: 1.6;
}


.nscare-event-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e1e7e3;
    border-radius: 10px;
    background: #fff;
    color: #616d65;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}


.nscare-event-more:hover {
    border-color: #bcdcc9;
    color: #16a05d;
}


/* =====================================================
   카드 목록
===================================================== */

.nscare-event-scroll {
    width: 100%;
}


.nscare-event-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 11px;
}


/* =====================================================
   카드
===================================================== */

.nscare-event-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5eae7;
    border-radius: 14px;
    background: #fff;
}


.nscare-event-link {
    display: block;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}


.nscare-event-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f7f4;
}


.nscare-event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}


.nscare-event-link:hover
.nscare-event-image img {
    transform: scale(1.035);
}


/* =====================================================
   이미지 없을 때
===================================================== */

.nscare-event-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #eff9f3 0%,
            #fbfdfc 100%
        );
    color: #16a05d;
}


.nscare-event-no-image span {
    margin-bottom: 3px;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .08em;
}


.nscare-event-no-image strong {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
}


/* =====================================================
   분류
===================================================== */

.nscare-event-category {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(16, 120, 70, .92);
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
}


/* =====================================================
   카드 내용
===================================================== */

.nscare-event-body {
    padding: 11px 11px 12px;
}


.nscare-event-body h3 {
    display: -webkit-box;
    min-height: 38px;
    margin: 0;
    overflow: hidden;
    color: #2b362f;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 750;
    letter-spacing: -.2px;
    word-break: keep-all;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


.nscare-event-link:hover
.nscare-event-body h3 {
    color: #16a05d;
}


.nscare-event-period {
    margin-top: 8px;
    color: #929a95;
    font-size: 9px;
    line-height: 1.4;
}


/* =====================================================
   등록글 없음
===================================================== */

.nscare-event-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 25px;
    box-sizing: border-box;
    border: 1px solid #e5eae7;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}


.nscare-event-empty strong {
    color: #4c5851;
    font-size: 13px;
    font-weight: 700;
}


.nscare-event-empty span {
    margin-top: 6px;
    color: #969e99;
    font-size: 11px;
    line-height: 1.6;
}


/* =====================================================
   작은 PC / 태블릿
===================================================== */

@media (max-width: 1100px) {

    .nscare-event-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}


/* =====================================================
   모바일
===================================================== */

@media (max-width: 768px) {

    .nscare-event-head {
        align-items: center;
        margin-bottom: 12px;
    }


    .nscare-event-heading h2 {
        font-size: 20px;
    }


    .nscare-event-heading p {
        display: none;
    }


    .nscare-event-more {
        min-height: 32px;
        padding: 0 10px;
        font-size: 10px;
    }


    .nscare-event-scroll {
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }


    .nscare-event-scroll::-webkit-scrollbar {
        display: none;
    }


    .nscare-event-grid {
        display: flex;
        gap: 10px;
        width: max-content;
    }


    .nscare-event-card {
        flex: 0 0 165px;
        width: 165px;
    }


    .nscare-event-body {
        padding: 10px;
    }


    .nscare-event-body h3 {
        font-size: 11px;
    }

}